mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 06:18:17 +01:00
Add several scripts
This commit is contained in:
parent
7956943d82
commit
e245e8b658
@ -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
|
||||
|
15
Scripts/play-cat-sound.ps1
Normal file
15
Scripts/play-cat-sound.ps1
Normal 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
|
15
Scripts/play-cow-sound.ps1
Normal file
15
Scripts/play-cow-sound.ps1
Normal 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
|
15
Scripts/play-dog-sound.ps1
Normal file
15
Scripts/play-dog-sound.ps1
Normal 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
|
15
Scripts/play-donkey-sound.ps1
Normal file
15
Scripts/play-donkey-sound.ps1
Normal 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
|
15
Scripts/play-elephant-sound.ps1
Normal file
15
Scripts/play-elephant-sound.ps1
Normal 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
|
15
Scripts/play-elk-sound.ps1
Normal file
15
Scripts/play-elk-sound.ps1
Normal 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
|
15
Scripts/play-frog-sound.ps1
Normal file
15
Scripts/play-frog-sound.ps1
Normal 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
|
15
Scripts/play-goat-sound.ps1
Normal file
15
Scripts/play-goat-sound.ps1
Normal 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
|
15
Scripts/play-gorilla-sound.ps1
Normal file
15
Scripts/play-gorilla-sound.ps1
Normal 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
|
15
Scripts/play-horse-sound.ps1
Normal file
15
Scripts/play-horse-sound.ps1
Normal 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
|
15
Scripts/play-lion-sound.ps1
Normal file
15
Scripts/play-lion-sound.ps1
Normal 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
|
15
Scripts/play-parrot-sound.ps1
Normal file
15
Scripts/play-parrot-sound.ps1
Normal 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
|
15
Scripts/play-pig-sound.ps1
Normal file
15
Scripts/play-pig-sound.ps1
Normal 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
|
15
Scripts/play-rattlesnake-sound.ps1
Normal file
15
Scripts/play-rattlesnake-sound.ps1
Normal 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
|
15
Scripts/play-vulture-sound.ps1
Normal file
15
Scripts/play-vulture-sound.ps1
Normal 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
|
15
Scripts/play-wulf-sound.ps1
Normal file
15
Scripts/play-wulf-sound.ps1
Normal 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
|
Loading…
Reference in New Issue
Block a user