mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-13 02:45:03 +02:00
Add play-bee-sound.ps1
This commit is contained in:
19
Scripts/play-bee-sound.ps1
Normal file
19
Scripts/play-bee-sound.ps1
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<#
|
||||||
|
.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))"
|
||||||
|
}
|
Reference in New Issue
Block a user