Search notes:

PowerShell: alias

An alias is another, usually shorter, name for a cmdlet.
An alias is one of the PowerShell command types which have an entry in the System.Management.Automation.CommandTypes enum.
Aliases have their own provider.

Cmdlets

PowerShell has a few cmdLets that are related to aliases. These have the noun alias.

Impossible to create aliases for cmdlets to be called with parameters

It is not possible to create an alias that calls a cmdlet (or function) with a parameter. An alias can only refer to the name of a command.
In the following example, the text get-childItem -recurse is understood as the name of a cmdlet (which most probably won't exist):
PS C:\> set-alias gcir 'get-childItem -recurse'
gcir: The term 'get-childItem -recurse' is not recognized as a name of a cmdlet, function, script file, or executable program.
PS C:\> gcir
A workaround for this limitation(?) is to create a function.

Misc

Operators cannot be aliased.

See also

Unix and cmd.exe like aliases
An alias is an item.
The existence of an alias can be verified with
PS C:\Users\Rene> test-path alias:\where
True
The preference variable $maximumAliasCount
The .NET class System.Management.Automation.AliasInfo
Aliases exist in a scope.

Index