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