Check that executable is working fine on target machine.
Make sure that executable could be found in a path set in PATH variable.
SD Job is executed under Local System Account and in some configuration, variable PATH may not contain some directories like %systemRoot% and %SystemRoot%\system32
If the path of executable is not in PATH variable in Local System environment, put the full path in command line :
fullpath/program1.exe | program2.exe
%Systemroot%\system32\reg.exe query "HKLM\Software\ComputerAssociates\Unicenter ITRM\InstalledFeatures" /v "Agent" 2>NUL | find /I "14.0.1000" > NUL
Another method :
Check if reg.exe could be found and if it could not be found add %SystemRoot%;%SystemRoot%\system32 and PATH variable :
reg.exe /? > nul 2>&1
IF ERRORLEVEL 9009 set PATH=%SystemRoot%;%SystemRoot%\system32;%PATH%