title: Stopping/Starting a remote Windows service and waiting for it to open/close
body: <p>The top answer to <a href="https://stackoverflow.com/questions/187836/how-do-i-restart-a-service-on-a-remote-machine-in-windows">this question</a> 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:</p>
  
  <ol>
  <li>Start a service, should return only after the service is started (or after a timeout, raising error level)</li>
  <li>Stop a service, return only after the service is stopped</li>
  </ol>