Here is a vbscript that will give you a list of all services and the state. Save the file as a .vbs and run it. You can modify it to meet your needs, but it may be a starting point for you.
strComputer = "."
strServices = ""
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colRunningServices = objWMIService.ExecQuery _
("Select * from Win32_Service WHERE DisplayName Like '%sql%'")
For Each objService in colRunningServices
strServices = strServices + objService.DisplayName & VbTab & objService.State & vbcr
Next
Wscript.Echo strServices