copy the contents below and save it as whateverName.ps1: # this Windows PowerShell Script is used to monitor the CPU/Mem info of a specified process # there will be a temporary .csv file during running, don't change/remove it before this script complete # refer to .log for the final data after running # by cbzhan@gmail.com, 2016-12-1 # if complained no privilege when execute, run this command in PowerShell Console: Set-ExecutionPolicy Unrestricted # define the process name that want to be monitored, which can be got from Windows' taskmgr, and no need to include file suffix, e.g. .exe $psName = "taskmgr" # define the time interval for data collection, in seconds. generally 30 secondes will be good enough $timeInterval = 2 # define the continuous running hours. if need input minutes, e.g. 5 minutes, use format as 5/60. if need input seconds, e.g. 5 seconds, use format as 5/3600 $rHours = 10/3600 # define output data folder path, note there must be a ...