let's say that I have an array with differents values
example : $myarray = @(1,2,35,4,5,6)
I simply want to have the greater value of $myarray; in the example the answer will be 35.
I can't find if there is a cmdlet returning the greater value of an array.
Thanks in advance guys