PowerTip: Find Stats with PowerShell
Summary: Use Windows PowerShell to find stats of objects.
How can I use Windows PowerShell to see the minimum, maximum, and average values of a
specific property in a series of objects?
Pipe the objects to the Measure-Object cmdlet, specify the property you seek, and use
the Average, Maximum, Sum, and Minimum switches, for example:
$objects | Measure-Object -Property numberofwords -Sum -Average -Maximum -Minimum