var ProcessItems = objWMIService.ExecQuery("SELECT ProcessId,Name,KernelModeTime,UserModeTime,WorkingSetSize,ReadTransferCount,WriteTransferCount,PageFileUsage,VirtualSize,Priority,ThreadCount FROM Win32_Process");
var ProcessItem = new Enumerator(ProcessItems);
for (; !ProcessItem.atEnd(); ProcessItem.moveNext()){
var item = ProcessItem.item();
var ProcessId = item.ProcessId;
if (!ProcessId && ProcessId !== 0) ProcessId = -1;