PowerShell PowerShell (Get-Process).Name | %{ $_ Get-Package | select * | Select-String $_ | Out-File -FilePath $_\$_ } 1234 (Get-Process).Name | %{ $_ Get-Package | select * | Select-String $_ | Out-File -FilePath $_\$_}