$sum = $NumberArray | Measure-Object -Average
$sum.Average
Use to get the sum of a number array
PS C:\> $NumberArray = 10,23,24,43,118,23,43 >> $sum = $NumberArray | Measure-Object -Average >> $sum.Average 40.5714285714286
$sum = $NumberArray | Measure-Object -Average
$sum.Average
DetailsPS C:\> $NumberArray = 10,23,24,43,118,23,43 >> $sum = $NumberArray | Measure-Object -Average >> $sum.Average 40.5714285714286