PowerShell/Scripts/play-mission-impossible.ps1
2022-02-10 08:57:52 +01:00

62 lines
1.5 KiB
PowerShell
Executable File

<#
.SYNOPSIS
Plays the Mission Impossible theme
.DESCRIPTION
This PowerShell script plays the Mission Impossible theme.
.EXAMPLE
PS> ./play-mission-impossible
(listen and enjoy)
.NOTES
Author: Markus Fleschutz / License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
[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