Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Created November 11, 2013 09:37
Show Gist options
  • Save jhorsman/7410547 to your computer and use it in GitHub Desktop.
Save jhorsman/7410547 to your computer and use it in GitHub Desktop.
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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment