The top answer to this question tells me how to stop/start a remote service. Great. Now, all I need is to wait for the actual stop/start to complete. So, what I'm looking for is a dos command to:
- Start a service, should return only after the service is started (or after a timeout, raising error level)
- Stop a service, return only after the service is stopped