Add several scripts

This commit is contained in:
Markus Fleschutz 2021-11-01 18:05:05 +01:00
parent 7956943d82
commit e245e8b658
17 changed files with 243 additions and 7 deletions

View File

@ -4,16 +4,12 @@
.DESCRIPTION
This script plays a bee sound.
.EXAMPLE
PS> ./open-bee-sound
PS> ./play-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))"
}
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/bee.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a cat sound
.DESCRIPTION
This script plays a cat sound.
.EXAMPLE
PS> ./play-cat-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/cat.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a cow sound
.DESCRIPTION
This script plays a cow sound.
.EXAMPLE
PS> ./play-cow-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/cow.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a dog sound
.DESCRIPTION
This script plays a dog sound.
.EXAMPLE
PS> ./play-dog-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/dog.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a donkey sound
.DESCRIPTION
This script plays a donkey sound.
.EXAMPLE
PS> ./play-donkey-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/donkey.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a elephant sound
.DESCRIPTION
This script plays a elephant sound.
.EXAMPLE
PS> ./play-elephant-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/elephant.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays an elk sound
.DESCRIPTION
This script plays an elk sound.
.EXAMPLE
PS> ./play-elk-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/elk.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a frog sound
.DESCRIPTION
This script plays a frog sound.
.EXAMPLE
PS> ./play-frog-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/frog.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a goat sound
.DESCRIPTION
This script plays a goat sound.
.EXAMPLE
PS> ./play-goat-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/goat.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a gorilla sound
.DESCRIPTION
This script plays a gorilla sound.
.EXAMPLE
PS> ./play-gorilla-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/gorilla.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a horse sound
.DESCRIPTION
This script plays a horse sound.
.EXAMPLE
PS> ./play-horse-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/horse.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a lion sound
.DESCRIPTION
This script plays a lion sound.
.EXAMPLE
PS> ./play-lion-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/lion.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a parrot sound
.DESCRIPTION
This script plays a parrot sound.
.EXAMPLE
PS> ./play-parrot-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/parrot.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a pig sound
.DESCRIPTION
This script plays a pig sound.
.EXAMPLE
PS> ./play-pig-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/pig.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a rattlesnake sound
.DESCRIPTION
This script plays a rattlesnake sound.
.EXAMPLE
PS> ./play-rattlesnake-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/rattlesnake.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a vulture sound
.DESCRIPTION
This script plays a vulture sound.
.EXAMPLE
PS> ./play-vulture-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/vulture.mp3"
exit 0 # success

View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Plays a wulf sound
.DESCRIPTION
This script plays a wulf sound.
.EXAMPLE
PS> ./play-wulf-sound
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/wulf.mp3"
exit 0 # success