A little late, but for people still having problems with this particular error message, one fix for this example is to use -WindowStyle Hidden instead of -NoNewWindow , I had -NoNewWindow , it seems, ignored a lot of the time and the cause of its own problems.
But for this particular error, which seems to come from using Start-Process with various executables, I found a solution that seems to work sequentially, redirects the output, as this is the result that returns, it seems to be causing the problem, K Unfortunately, although this leads to writing to a temporary file and cleaning it up.
As an example:
Start-Job -ScriptBlock {
Hope this helps.
source share