There are three useful cmdlets to help you work with Windows Services, which are as follows:
There are more commands like "Suspend-Service" and "Resume-Service" but the above are the basics. The best way to use them is combined together like this:Get-Service *agent*
Get-Service MyAgentService | Stop-Service
Clearly you need to be careful how many result you pipe to the stop command!