Improve executing other scripts

This commit is contained in:
Markus Fleschutz
2021-04-07 14:45:10 +02:00
parent 6cf41e4221
commit 381c3b850f
6 changed files with 15 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ try {
$Joke = $Table[$Index].Joke
& ./speak-english.ps1 "$Joke"
& "$PSScriptRoot/speak-english.ps1" "$Joke"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"