I want to gather the results of an analysis so I can create a trend over time, my analysis runs every hour and I want the results building up in a file (say results.csv), my script looks like this:
if (exists wmi) then ( ((string value of selects “WorkingSetSize from win32_process where Name = ‘nsclient++.exe’” of wmi) as integer) / (1024*1024)) as string & " MB" else “Not available”