Files
ImportExcel/Examples/JustCharts/PieChartPM.ps1
2018-07-05 16:14:56 -04:00

10 lines
245 B
PowerShell

# Get only processes hat have a company name
# Sum up PM by company
# Show the Pie Chart
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
PieChart -Title "Total PM by Company" `
(Invoke-Sum (Get-Process|Where-Object company) company pm)