Suspend shell, script, or runspace activity for the specified period of time.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Start-Sleep
[-Seconds] <Int32> [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Start-Sleep -Milliseconds <Int32>
[-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The start-sleep Cmdlet suspends shell, script, or runspace activity for the specified period of time. It can be useful in a script to wait for an operation to complete, or in a loop to wait a specific time and do an operation repeatedly. The -seconds parameter takes an integer that represents the time, in seconds, to suspend execution. The -milliseconds parameter takes an integer that represents the time, in milliseconds, to suspend execution.