start /wait sc stop service B
start /wair sc stop Service A
Note:
The "start /wait" command runs the command (e.g. sc), then waits until the command actually terminates. Stopping and starting a service takes a while, so without this, the next command (e.g. sc stop Service A) may run before the sc stop Service B is actually stopped.