Hi,
There are a few easy ways to do this, you can use the run command to do a simple "net stop servicename" then "net start servicename"
Or for more control/scriptability you can use PowerShell
Stop-Service -DisplayName 'CA Agent Monitor'
Start-Service -DisplayName 'CA Agent Monitor'
Both would need to be run by system, or an account with the proper privileges.