PowerShell/Scripts/say-hello.ps1
2021-12-06 15:46:02 +01:00

21 lines
439 B
PowerShell

<#
.SYNOPSIS
Replies to "Say hello"
.DESCRIPTION
This script replies to "Say hello" by text-to-speech (TTS).
.EXAMPLE
PS> ./say-hello
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/give-reply.ps1" "Hello, everyone."
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}