I send a string Sun is shining, the weather is sweet to my Powershell script for converting text to JSON request and then to speech.
This snippet works as intended:
$CMD = "powershell " & $powershellScript & " -Text '" & $sText & "' -Path " & $outputFile[1] & ".wav"
$execCommand = Run($CMD,...