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
       [...]
Insert Dynamic Information in a String
1. Problem
You want to place dynamic information (such as the value of another variable) in a string.
2. Solution
In an expanding string, include the name of a variable in the string to insert the value of that variable.
       PS >$header = “Report for Today”
       PS >$myString = “$header’n—————-”
       PS >$myString
       Report for Today
       —————-
To include [...]
Store Information in Variables
1. Problem
You want to store the output of a pipeline or command for later use, or to work with it in more detail.
2. Solution
To store output for later use, store the output of the command in a variable. You can access this information later, or even pass it down the pipeline as though it was [...]

