 ListProcess:
     result := ""
 
-    for process in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process")
+    for process in ComObjGet("winmgmts:").ExecQuery("select * from Win32_Process")
     {
         result .= "* | 进程 | " process.Name " | " process.CommandLine "`n"
     }


ListAllService:
    result :=
    for service in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Service")
    {
        result .= "* | 服务 | " service.Name " | " service.DisplayName "`n"
    }
    Sort, result

    SetCommandFilter("CountNumber")
    DisplayResult(FilterResult(AlignText(result), Arg))
    TurnOnResultFilter()
return

ListRunningService:
    result :=
    for service in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Service")
    {
        if (service.Started != 0)
        {

    @("CountNumber", "计算数量 wc")
    @("ListRunningService", "列出运行的服务")
    @("ListAllService", "列出运行的服务")
    @("ShowService", "显示服务详情")
return

CmdRun:
