Tip: You can see the aliases for a parameter for a specific command by accessing its Parameters collection:
1 |
(Get-Command Get-Service).Parameters.Values | Select-Object -Property Name, Aliases |
To create parameter name aliases for your functions :
1 2 3 4 5 6 7 8 9 |
function Get-Something { Param ( [Parameter(Mandatory=$true)] [Alias('Name', 'ProcName')] [string[]]$ProcessName ) } |