If your PowerShell script outputs 1 - OK DNS is reachable
it is not a Nagios Plugin and cannot be started via MRPE. A Nagios Plugin exits with the status code, where 0 is OK, 1 is WARN and 2 is CRIT.
It looks like it would be easier for you to just write a Local Check instead: Extending an agent is simple