title: Replace strings in properties of custom PSObjects in an array
body: <p>I read a CSV file into an array of objects (using <code>Import-Csv</code>). If I write that data back to disk with <code>Export-Csv</code>, I get exactly what I expected, a well formatted CSV.</p>
  
  <p>Now I need to change some data in that CSV. One of them being strings that need to be replaced.  But if I do a simple:</p>
  
  <pre><code>$thisIsTheArrayOfObjects -replace "Old ID", "New ID" 
  </code></pre>
  
  <p>it results in an array of STRINGS. (the replacement happened, but somehow all my objects in the array got casted to strings)</p>
  
  <p>Of course now the <code>Export-Csv</code> does not deliver the expected result. It's just exporting a file with all the length of the strings in my array.</p>
  
  <p>How can I replace strings in properties of PSOBJECTS in an array?</p>