title: Find character position and update file name
body: <p>What function might I use to find a character position in a string using PowerShell 2.0?</p>
  <p>i.e I would use CHARINDEX or PATINDEX if using SQL Server.</p>
  <p>I looked at using the <code>Select-String</code> cmdlet, but it doesn't seem to do what I need it to do.</p>
  <p>Ultimately I'm looking to find a &quot;_&quot; character in a file name and strip off everything to the following &quot;.&quot; .</p>
  <p>Example file name <strong>237801_201011221155.xml</strong></p>