Updated set-timer.ps1

This commit is contained in:
Markus Fleschutz 2020-12-25 10:45:59 +00:00
parent 94106839fd
commit 9f027b60c5

View File

@ -11,8 +11,10 @@ try {
if ($Seconds -eq 0 ) {
[int]$Seconds = read-host "Enter number of seconds"
}
for ($i = $Seconds; $i -gt 0; $i--) {
write-progress "$i seconds"
clear-host
write-big "T-$i seconds"
start-sleep -s 1
}
write-output "OK - $Seconds seconds countdown finished"