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