Can you actually share your powershell script (or some version of it with which gives same results).
Also, what's the version of powershell itself - it might make some difference.
Also, what's the version of powershell itself - it might make some difference.