...
Powershell allows the use of aliases i.e. Get-ChildItem is the same as dir or ls. See Common Commands for more.
Pause powershell:
No Format |
---|
write-host "Press any key to continue..." |
...
[void][System.Console]::ReadKey($true) |
This will stop powershell at a line and a user key press is necessary to continue through the script.
Common Commands
Use the Get-Alias command to view all Powershell aliases.
...