Use the Get-Help cmdlet to get help in the Windows PowerShell environment. Get-Help provides basic help for the Windows PowerShell language and the various cmdlets and providers available in Windows PowerShell.
The SQL Server cmdlets support Get-Help. Get-Help returns cmdlet usage information, such as syntax and parameter descriptions. The following examples returns the full help for Invoke-Sqlcmd, help for just the parameters, and then help for just the examples:
Get-Help Invoke-Sqlcmd -Full
Get-Help Invoke-Sqlcmd -Parameter *
Get-Help Invoke-Sqlcmd -Examples
For more information on the ways you can use Get-Help to learn about cmdlets, see Get-Help: Getting Help.
The SQL Server provider also supports Get-Help. For example, this code returns basic information about the SQL Server provider:
This code returns a list of the providers currently enabled in your Windows PowerShell session:
Get-Help -Category provider
For more information about getting provider help in Windows PowerShell, see Drives and Providers.