Aha. That worked a treat I'd thought the TaintedString error was telling me I was creating a "tainted string" when building the command. And the reason I'd omitted the let outp = was that it looked like that was assigning the result of the command to a varible so it could be used later on –and I just wanted it to run & exit.
Thanks for your help.
