Try adding

Dim $SO
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('NoMacrosInStrings','On')


Then instead of using SHELL just use the newline ?
on DOS console so you can see the output that the program should be seeing.