public override string[] Execute(ParsedArgs args) { if (string.IsNullOrEmpty(args.ProcessName)) { throw new EDDException("ProcessName cannot be empty"); } LDAP procQuery = new LDAP(); List <string> procComputers = procQuery.CaptureComputers(); WMI processSearcher = new WMI(); List <string> systemsWithProc = processSearcher.CheckProcesses(procComputers, args.ProcessName); return(systemsWithProc.ToArray()); }