CmdID / PowerShell / Cmdlets / Start
Start-Sleep
Suspends the activity in a script or session for the specified period of time. PowerShell reference
From the PowerShell reference
2 parameters
Alias sleep
What it does
Suspends the activity in a script or session for the specified period of time. The Start-Sleep cmdlet suspends the activity in a script or session for the specified period of time. You can use it for many tasks, such as waiting for an operation to complete or pausing before repeating an operation.
Start-Sleep [-Seconds] <Int32> [<CommonParameters>]Start-Sleep -Milliseconds <Int32> [<CommonParameters>]
Pause execution for 1 second
Start-Sleep -Seconds 1IdentifyPause execution at the command line
PS> Get-Date; Start-Sleep -Seconds 5; Get-Date
Friday, May 13, 2022 9:38:15 AM
Friday, May 13, 2022 9:38:20 AMIdentifyIts page in the reference: Start-Sleep.
Parameters
-MillisecondsSpecifies how long the resource sleeps in milliseconds. The parameter can be abbreviated as m.-SecondsSpecifies how long the resource sleeps in seconds. You can omit the parameter name or you can abbreviate it as s.