mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 12:34:25 +01:00
20 lines
417 B
PowerShell
20 lines
417 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Plays a bee sound
|
|
.DESCRIPTION
|
|
This script plays a bee sound.
|
|
.EXAMPLE
|
|
PS> ./open-bee-sound
|
|
.NOTES
|
|
Author: Markus Fleschutz · License: CC0
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
#>
|
|
|
|
try {
|
|
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/Data/Sounds/bee.mp3"
|
|
exit 0 # success
|
|
} catch {
|
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
|
}
|