Hope someone can help. Doesn’t seem like i can output it so that it can be properly exported. This is the best output i seem to be able to do.
$qry1 = Get-wmiobject -class win32_perfformatteddata_perfproc_process | select WorkingSetPeak
$qry2 = Get-WmiObject -class win32_process | select processname,commandline