I am trying to do something simple. I need to read Process Names such as explorer, services, winrm then want to pipe get-process and get the CPU, Description then export this to CSV.
$Processes = Import-Csv "importprocess.csv" $Processes | ForEach-Object | Get-Process.CPU get-process $Processes.Name | ConvertTo-Csv -NoTypeInformation | Out-File "c:\users\user\documents\processesoutput.csv"
I also want to get-process explorer then pipe to get-service specific properties from the get-service cmdlet and export these as a csv. So i have data from multiple cmdlets in a single csv.