Adding a pause into your PowerShell Script is really simple. You can use the Start-Sleep cmdlet with:
- The -s parameter to specify time in seconds
- The -m parameter to specify time in milliseconds.
The following command pauses your PowerShell Script for 5 seconds:
PS > Start-Sleep -s 5
You can also use the following alias:
PS > Sleep 5
More information here: https://technet.microsoft.com/en-us/library/ee177002.aspx
Thanks for reading! You can follow me on Twitter @PrigentNico