Add the below code to any PowerShell script to call a pause.
This code is made possible by http://blogs.msdn.com/powershell/archive/2007/02/25/pause.aspx
1 2 3 4 5 6 | function Pause ($Message="Press any key to continue...") { Write-Host -NoNewLine $Message $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") Write-Host "" } |







