Powershell Sleep – How to Pause a Script
Powershell Sleep or Pause – How to Pause or sleep a Script?
You may need to pause your PowerShell script for a few seconds from time to time. When you use a do while loop to check if a server is back online, for example. The PowerShell Start Sleep cmdlet can be used to accomplish this. We can put the script to sleep for a few seconds using this command.
In this article, I’ll show you how to utilize the PowerShell Sleep command with a handful of examples.
Using the Start Sleep cmdlet in PowerShell
The start-sleep cmdlet in PowerShell … Read the rest