title: How to RemoveAll when using generic list<T> in powershell
body: <p>If I use generic list like this:</p>
  
  <pre><code>$foo = New-Object 'system.collections.generic.list[object]'
  $foo.Add((New-Object PSObject -Property @{ Name="Foo1"; }))
  $foo.Add((New-Object PSObject -Property @{ Name="Foo2"; }))
  $foo.Add((New-Object PSObject -Property @{ Name="foo3"; }))
  </code></pre>
  
  <p>How can I apply RemoveAll() method of <code>List&lt;T&gt;</code>? Is it possible to use predicates? How can I for example remove all items that start with capital 'F'?</p>