title: Can LINQ be used in PowerShell?
body: <p>I am trying to use LINQ in PowerShell.  It seems like this should be entirely possible since PowerShell is built on top of the .NET Framework, but I cannot get it to work.  For example, when I try the following (contrived) code:</p>
  
  <pre><code>$data = 0..10
  
  [System.Linq.Enumerable]::Where($data, { param($x) $x -gt 5 })
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Cannot find an overload for "Where" and the argument count: "2".</p>
  </blockquote>
  
  <p>Never mind the fact that this could be accomplished with <code>Where-Object</code>.  The point of this question is not to find an idiomatic way of doing this one operation in PowerShell.  Some tasks would be light-years easier to do in PowerShell if I could use LINQ.</p>