Local check on windows not being picked up

Why do you try such things.
In one of your earlier posts you get the output of your Powershell already but not in the correct format.

Try to fix the output problem and all is ok.
I think this is easier then finding why the batch is not correctly executed.