Random Project

Very Good Plugin but it doesn’t work by console

I’ve try this nagios plugin by local prompt, and it works fine, but if i implement it by nrpe.cfg it doesn’t work:
I have this error:
‘-‘ was specified with the -Command parameter: no other arguments to -Command are permitted.
Exit 0

I Don’t understand why, it’s declared correctly
command[check_win_upd]=cmd /c echo C:nrpelibexeccheck_windows_updates.ps1 “$ARG1$”; exit $LastExitCode | powershell.exe -command –

It’s very strange