Summary: Use Windows PowerShell to count a range of seconds.
Image may be NSFW.
Clik here to view. How can I use Windows PowerShell to count a range of seconds of increasing duration?
Image may be NSFW.
Clik here to view. Use the range operator to create a range of numbers, then pipe the results to the ForEach-Object cmdlet
inside a script block call Start-Sleep:
1..5 | ForEach {Start-Sleep -Seconds $_ ; "$_ seconds"}
Image may be NSFW.
Clik here to view.
Clik here to view.
