Onlyif not functioning even when return is not "0"
I have an exec which executes a powershell command to stop and delete a service. It's dependent on an onlyif which is using powershell's "Get-Service" to check if the service exists. I can see that the Get-Service call is returning 1060 (service doesn't exist), but the command still attempts to execute.
Am I missing something here?