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