Get-Command helps you discover PowerShell commands directly, especially when you remember part of a name but not the exact command. Its alias is gcm. section 3.4
Use wildcards to search command names. For example, gcm *get* lists commands containing get, although results can include external commands such as wget. section 3.4
Narrow the search by using command verbs, nouns, types, or modules:
- Get-Command -Noun *event* finds commands dealing with events. section 3.4
- Get-Command -Verb Get lists commands whose verb is Get. section 3.4
- Get-Command *event* -Type cmdlet limits matching results to cmdlets. section 3.4
- Get-Command -Module PSReadLine lists commands supplied by a named module. section 12.8
Find commands before reading their help
Try Get-Command -Noun file,printer, Get-Command -Verb set -Noun psbreakpoint, or Get-Command Get-* -Module PSReadLine. After narrowing the list, use Help with -Example or -Full to learn how to run a command. section 3.9 section 7.6 section 12.8
Name Category ModuleName
Get-Event Cmdlet Microsoft.PowerShell.Utility
Get-EventSubscriber Cmdlet Microsoft.PowerShell.Utility
New-Event Cmdlet Microsoft.PowerShell.Utility
Register-EngineEvent Cmdlet Microsoft.PowerShell.Utility
Register-ObjectEvent Cmdlet Microsoft.PowerShell.Utility
Remove-Event Cmdlet Microsoft.PowerShell.Utility
Unregister-Event Cmdlet Microsoft.PowerShell.Utility
Wait-Event Cmdlet Microsoft.PowerShell.Utility
Browse an example result set showing event-related cmdlets, including Get-Event, New-Event, and Register-ObjectEvent. section 3.4
