jhorsman
11/11/2013 - 9:37 AM

How to program a "Press any key to continue" in PowerShell

How to program a "Press any key to continue" in PowerShell

Write-Host "This is a test..."

Write-Host
Write-Host "Press any key to continue"
$void = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")