Added write-red.ps1, write-green.ps1 and write-blue.ps1

This commit is contained in:
Markus Fleschutz
2020-12-18 13:33:57 +00:00
parent 34a7d8b3be
commit d93469c392
5 changed files with 63 additions and 4 deletions

View File

@ -7,11 +7,10 @@
# License: CC0
param([int]$Seconds)
if ($Seconds -eq 0 ) {
[int]$Seconds = read-host "Enter number of seconds"
}
try {
if ($Seconds -eq 0 ) {
[int]$Seconds = read-host "Enter number of seconds"
}
for ($i = $Seconds; $i -gt 0; $i--) {
write-progress "$i seconds"
start-sleep -s 1