Summary: Use the Get-Command cmdlet to check syntax options for a Windows PowerShell cmdlet.
I want to know what syntax options (parameter sets) exist for a particular Windows PowerShell cmdlet. How can I find them easily?
Use the Get-Command cmdlet and check the Definition property. The code is shown here:
(Get-Command Stop-Process).Definition