title: rename-item and override if filename exists
body: <p>I am trying to use the <code>Rename-Item</code> cmdlet to do the following:</p>
  
  <p>I have folder which contains "<strong>*.txt</strong>" files. Let's say 1.txt, 2.txt etc...</p>
  
  <p>I want to copy files that have some prefix, rename them to *.txt and override any existing files if there are any.</p>
  
  <p>example:</p>
  
  <blockquote>
    <p>folder: c:\TEST </p>
    
    <p>files : 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, index.1.txt, index.2.txt, index.3.txt, index.4.txt, index.5.txt</p>
  </blockquote>
  
  <p>I want to use rename-item to filter any <strong><code>index.*.txt</code></strong> and rename them to <strong><code>*.txt</code></strong>, and if the same file exists, replace it.</p>
  
  <p>Thank you guys</p>