Measure Statistical Properties of a List
1. Problem
You want to measure the numeric (minimum, maximum, sum, average) or textual (characters, words, lines) features of a list of objects.
2. Solution
Use the Measure-Object cmdlet to measure these statistical properties of a list.
To measure the numeric features of a stream of objects, pipe those objects to the Measure-Object cmdlet:
       PS >1..10 | Measure-Object–Average -Sum
       [...]
Measure the Duration of a Command
1. Problem
You want to know how long a command takes to execute.
2. Solution
To measure the duration of a command, use the Measure-Command cmdlet:
       PS >Measure-Command { Start-Sleep -Milliseconds 337 }
       Days             : 0
       Hours            : 0
       Minutes          : 0
       Seconds          : 0
       Milliseconds     : 339
       Ticks            : 3392297
       TotalDays        : 3.92626967592593E-06
       TotalHours       : 9.42304722222222E-05
       TotalMinutes     [...]

