Useful for soft cycle scripts while deploying to integration or testing event handlers.

# Simple wmi powershell command do shut down service on remote box

Write-Host Shutting down service on remote box
(Get-WmiObject -computer remote-computer Win32_Service -Filter "Name='sptimerv4'").InvokeMethod("StopService",$null)

# Sample to start up service
Write-Host Shutting down service on remote box
(Get-WmiObject -computer remote-computer Win32_Service -Filter "Name='sptimerv4'").InvokeMethod("StartService",$null)