Summary: Easily find the largest number in a Windows PowerShell array.
(image) How can I use Windows PowerShell to easily find the largest number in an array of numbers?
(image) Pipe the array to the Measure-Object cmdlet, and use the –Maximum switch:
PS C:\> $a = [array]1,2,5,6,3,2,9,1
PS C:\> $a | ...