I want to run 15 instances of a script that pipelines 5 scripts together, and so far I\'m missing the pixie dust. I\'ve boiled the problem down to a test case with a master scri
You are calling sub_slave.ps1 wrong. This:
invoke-expression "D:\jobs\sub_slave.ps1 -message $message"
Should be this:
D:\jobs\sub_slave.ps1 -message $message
The message was getting evaluated and became multiple arguments.
Just taking a guess here, but having multiple threads/jobs write to the same file out.txt
could be causing issues.