Local check on windows not being picked up

The output outside of the agent context is not relevant.
Remember that the script when it runs has no environment - it runs as local system.
You check it every time as a local user.
The only test what you should do is a “cmk -d hostname” from your monitoring server to get the real output directly.