Here we go again. This may be the last bit of help from me. Seems I'm writing your script for you. With a solid understanding of KiX and some reading in the WMI SDK, you should be able to do this yourself.
Here are the basics, I think, of what you're trying to get out of the processes list...
code:
$strComputer = "."
$objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"+$strComputer+"\root\cimv2")
$Processes = $objWMIService.ExecQuery("select * from win32_process")
for each $Process in $Processes
? " Caption: "+$Process.Caption ;Caption of process
? " Threads: "+$Process.ThreadCount ;Number of active threads
? " PageFileUsage: "+$Process.PageFileUsage ;Page File Space used by process (in KBs)
? "KernelModeTime: "+$Process.KernelModeTime ;Time in kernel mode, in 100 nanosecond units
?
next