PS C:\\Users\\kris> $hashx=@{} PS C:\\Users\\kris> $(Get-CimInstance Win32_Process | Select-Object ProcessId, Name) | ForEach-Object { $hashx[$_.ProcessId]=$_.