Pause - Windows PowerShell Blog - Site Home - MSDN Blogs
I'm not using the ISE, but PowerGui Script Editor instead.. so modded the above script so that it ONLY waits for keystroke if running in the console, otherwise sleeps for 3 sec. # Function that pauses until user presses a key if in the powershell console ...