-Syntax is a switch parameter for Get-Command. Adding it displays a command’s full-form syntax, helping you see its parameters and required structure before running it. section 4.3
Inspect command syntax
Get-Command -Verb Get -Module PSReadLine,PowerShellGet -Syntax Because -Syntax is a switch, it needs no value. Parameter names begin with a dash, spaces separate command elements, and values can be comma-separated. section 4.3
Use -Syntax alongside the help system when a command or parameter is unclear. Typing a command completely exposes its intended structure and can help distinguish valid syntax from a mistyped abbreviation. section 4.8 section 3.1
Use the command anatomy figure to identify the cmdlet name, parameter names, values, switch parameters, spaces, and dashes in a complete command. section 4.3
