title: powershell max/first/aggregate functions
body: <p>First of all, i`m .NET developer and LOVE LINQ and extension methods in C#.
  But when i scripting i need something equivalent to <a href="http://msdn.microsoft.com/en-us/library/system.linq.enumerable_methods.aspx">Enumerable extension methods</a></p>
  
  <p>Can anybody give me any suggestion/explain best practice about how to work in such scenarios in Powershell. For example, assume i want to take max element from array:</p>
  
  <pre><code>$arr = @(2, 1, 3)
  $max = $arr.MAX() #?? what should i do in this case?
  </code></pre>