Skip to content

Instantly share code, notes, and snippets.

@rufflabs
Created May 23, 2015 13:50
Show Gist options
  • Save rufflabs/b25658c6875b716157ef to your computer and use it in GitHub Desktop.
Save rufflabs/b25658c6875b716157ef to your computer and use it in GitHub Desktop.
Emulates pause, waiting for the user to press any key to continue.
Write-Host "Press any key to exit."
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludEKeyDown")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment