Thanks.
I started suspecting this soon after making this post. Amazingly, a little research revealed this is apparently one of PowerShell's Achilles heels.
https://stackoverflow.com/questions/...line-arguments
I'm re-writing this in python and it seems to be working.