Make the document user profile
cd $env:USERPROFILE\Documents
md WindowsPowerShell -ErrorAction SilentlyContinue
New-Item -Path $Profile -Type File
Using a function the contents of Microsoft.PowerShell_profile.ps1
can be:
function Do-ActualThing {
# do actual thing
}
Set-Alias MyAlias Do-ActualThing
Using just a simple alias:
Set-Alias MyAlias Action
example:
Set-Alias tf terraform