PowerShell PowerShell 1..60 | ForEach-Object { $percent = $_ * 100 / $seconds Write-Progress -Activity Break -Status "$($seconds - $_) seconds remaining..." -PercentComplete $percent Start-Sleep -Seconds 1 } 12345 1..60 | ForEach-Object { $percent = $_ * 100 / $seconds Write-Progress -Activity Break -Status "$($seconds - $_) seconds remaining..." -PercentComplete $percent Start-Sleep -Seconds 1}