Contents tagged with make pause

  • How to make pause in powershell script execution

    Hello everybody,

    today I want to make short note about how to make pause untill user press a key in PowerShell execution.

    Here it is:

      Write-Host "Press any key to continue ..."

     $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

    Presented code will make a pause. more