PowerShell/scripts/play-mission-impossible.ps1

67 lines
1.6 KiB
PowerShell
Raw Normal View History

2024-10-01 13:37:53 +02:00
<#
2021-07-13 21:10:02 +02:00
.SYNOPSIS
2021-09-24 17:19:49 +02:00
Plays the Mission Impossible theme
2021-10-04 21:29:23 +02:00
.DESCRIPTION
2022-02-10 08:57:52 +01:00
This PowerShell script plays the Mission Impossible theme.
2021-07-13 21:10:02 +02:00
.EXAMPLE
2024-01-25 13:58:06 +01:00
PS> ./play-mission-impossible.ps1
(listen and enjoy)
2021-07-13 21:10:02 +02:00
.LINK
https://github.com/fleschutz/PowerShell
2022-06-01 09:30:47 +02:00
.NOTES
Author: Markus Fleschutz | License: CC0
2021-02-16 19:43:46 +01:00
#>
2024-01-25 13:58:06 +01:00
try {
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(932,150)
Start-Sleep -m 150
[System.Console]::Beep(1047,150)
Start-Sleep -m 150
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[console]::Beep(699,150)
Start-Sleep -m 150
[System.Console]::Beep(740,150)
Start-Sleep -m 150
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(932,150)
Start-Sleep -m 150
[System.Console]::Beep(1047,150)
Start-Sleep -m 150
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(784,150)
Start-Sleep -m 300
[System.Console]::Beep(699,150)
Start-Sleep -m 150
[System.Console]::Beep(740,150)
Start-Sleep -m 150
[System.Console]::Beep(932,150)
[System.Console]::Beep(784,150)
[System.Console]::Beep(587,1200)
Start-Sleep -m 75
[System.Console]::Beep(932,150)
[System.Console]::Beep(784,150)
[System.Console]::Beep(554,1200)
Start-Sleep -m 75
[System.Console]::Beep(932,150)
[System.Console]::Beep(784,150)
[System.Console]::Beep(523,1200)
Start-Sleep -m 150
[System.Console]::Beep(466,150)
[System.Console]::Beep(523,150)
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}