Pause Windows PowerShell Ten seconds:
Start-sleep –s Ten
Pause Script Ten seconds ( Ten , the milliseconds)
Start-sleep–m 10000
Grammar
start-sleep [- seconds ] < int > [< commonparameters >]
start-sleep - milliseconds < int > [< commonparameters >]
Detailed description
Start-sleepcmdletsmakeShell, Script, or the run space activity hangs for the specified time. You can use this command in a script to wait for the end of an operation, or wait for a specified time in the loop to continue iterating.
Parameters
- seconds < int >
Specifies the number of seconds the sleep source needs to sleep You can ignore this parameter name (- seconds ), You can also use this parameter abbreviation "-S"
- milliseconds < int >
specify the number of milliseconds a sleep source needs to sleep . this parameter abbreviation "-M" .
< Public Parameters >
This command supports common parameters: -Verbose, -Debug, -ErrorAction, -errorvariable, and-outvariable. More Information, input, "Get-help about_commonparameters".
input type
Int32
If you need to provide multiple parameters for the command , . For example , "<parameter-name> < Value1>, <value2> " .
You can use start-sleep built-in alias "sleep" . need more information , view about_alias
English Original: http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/start-sleep.mspx
PowerShell Start-sleep