Local check on windows not being picked up

But you see in your output that there is some text around this lines.
This has something to do with - how you wrote your powershell script.
Such a simple command inside a powershell script is not possible normally.