Search notes:

PowerShell cmdLets: New-Alias and Set-Alias

new-alias creates a new alias, set-alias overwrites an existing alias or, if it doesn't exist, creates a new alias.
new-alias throws an error if the alias to be created already exists.
function a-function-with-a-long-and-complicated-name {
   param (
      [int] $i
   )

   $i * $i
}

#
#  Create alias for function
#
new-alias square a-function-with-a-long-and-complicated-name

#
#  Use alias to invoke function
#
square 5

See also

Powershell command noun: alias

Index