diff --git a/Scripts/play-beep.ps1 b/Scripts/play-beep.ps1 index 0eca971b..80a22db2 100755 --- a/Scripts/play-beep.ps1 +++ b/Scripts/play-beep.ps1 @@ -11,5 +11,6 @@ https://github.com/fleschutz/PowerShell #> -[console]::beep(500,300) +[System.Console]::Beep(500,300) +start-sleep -m 300 exit 0 # success diff --git a/Scripts/play-mission-impossible.ps1 b/Scripts/play-mission-impossible.ps1 index c24ea6ec..4ea5d953 100755 --- a/Scripts/play-mission-impossible.ps1 +++ b/Scripts/play-mission-impossible.ps1 @@ -11,50 +11,50 @@ https://github.com/fleschutz/PowerShell #> -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(932,150) +[System.Console]::Beep(932,150) Start-Sleep -m 150 -[console]::beep(1047,150) +[System.Console]::Beep(1047,150) Start-Sleep -m 150 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(699,150) +[console]::Beep(699,150) Start-Sleep -m 150 -[console]::beep(740,150) +[System.Console]::Beep(740,150) Start-Sleep -m 150 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(932,150) +[System.Console]::Beep(932,150) Start-Sleep -m 150 -[console]::beep(1047,150) +[System.Console]::Beep(1047,150) Start-Sleep -m 150 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(784,150) +[System.Console]::Beep(784,150) Start-Sleep -m 300 -[console]::beep(699,150) +[System.Console]::Beep(699,150) Start-Sleep -m 150 -[console]::beep(740,150) +[System.Console]::Beep(740,150) Start-Sleep -m 150 -[console]::beep(932,150) -[console]::beep(784,150) -[console]::beep(587,1200) +[System.Console]::Beep(932,150) +[System.Console]::Beep(784,150) +[System.Console]::Beep(587,1200) Start-Sleep -m 75 -[console]::beep(932,150) -[console]::beep(784,150) -[console]::beep(554,1200) +[System.Console]::Beep(932,150) +[System.Console]::Beep(784,150) +[System.Console]::Beep(554,1200) Start-Sleep -m 75 -[console]::beep(932,150) -[console]::beep(784,150) -[console]::beep(523,1200) +[System.Console]::Beep(932,150) +[System.Console]::Beep(784,150) +[System.Console]::Beep(523,1200) Start-Sleep -m 150 -[console]::beep(466,150) -[console]::beep(523,150) +[System.Console]::Beep(466,150) +[System.Console]::Beep(523,150) exit 0 # success