Maximun value from list of numbers

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

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

118