#Requires -version 2.0 #array of process names $Procs="iexplore","chrome","firefox" $Procs | foreach { #get the earliest start time $started=Get-Process $_ | sort StartTime | Select -first 1 #create a custom object New-Object PSObject -Property @{ Name=$_ WS=(get-process $_ | measure-object ws -sum).sum/1mb Report=Get-Date Started=$started.StartTime Elapsed=(Get-Date)-($Started.StartTime) } } #foreach