Average a list of numbers

$sum = $NumberArray | Measure-Object -Average
$sum.Average
Details
Use to get the sum of a number array

Example
PS C:\> $NumberArray = 10,23,24,43,118,23,43
>> $sum = $NumberArray | Measure-Object -Average
>> $sum.Average

40.5714285714286