it sounds like a right is missing.
Try this -
Create a .bat file with the command.
From a cmd.exe window, execute the .bat file.
(This is essentially what the OS Agent does.)
What is the command in the Windows job?
In some of my jobs that stop and start a service, I use the command 'net start <service>' and 'net stop <service>.
I found the commands on
Technet.