title: How to create an ArrayList from an Array in PowerShell?
body: <p>I've got a list of files in an array. I want to enumerate those files, and remove specific files from it. Obviously I can't remove items from an array, so I want to use an <code>ArrayList</code>.
  But the following doesn't work for me:</p>
  
  <pre><code>$temp = Get-ResourceFiles
  $resourceFiles = New-Object System.Collections.ArrayList($temp)
  </code></pre>
  
  <p>Where <code>$temp</code> is an Array.</p>
  
  <p>How can I achieve that?</p>