How To Make Pause In Powershell Script Execution
12 July 2016
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.
Ready to take your Acumatica development to the next level? Just like how a simple PowerShell script can pause execution until user input, your Acumatica system can be customized to perfectly align with your business needs. Whether it's a unique feature or a tailored workflow, we’re here to make it happen. Leave a customization request today and let’s build something extraordinary together!