in reply to Re^4: Want to Start / Stop windows service through executing Perl Script
in thread Want to Start / Stop windows service through executing Perl Script

How does this code relate to the problem at hand?

But as you're already using WMI, you can just use the service objects to start/stop the service. Just call ->StartService or ->StopService on the service respectively.