I don't want to be reliant on files eg if the PS script is deleted the node won't work but if its in the node natively less chance of problems.
I could just use a file node to list the filenames and then do a loop.
Or just use the script in the flow which defeats the purpose.
cd my\folder\name && someterrible.exevar directory = "cd " + msg.payload
var command = " && "selfdestruct -t 10"msg.payload = directory + command
return msg;
Result c:\home\selfdestruct -t 10