We can use the TFSServiceControl command to manage, stop or start all of the services and application pools Visual Studio Team Foundation Server uses. For example, we use this command when backing up or restoring databases, or when you are moving your deployment from one machine to another. Don't try to stop the job or any service directly, the command will be as the following:
1
2
TFSServiceControl
\[quiesce\|unquiesce\]
For more information see the MSDN link here