title: Powershell: rename-item increment if exist (multiple extensions)
body: <p>I have a folder with files having multiple extensions and I need to rename them to "thisname".<br>
  Renaming should happen like the following</p>
  
  <pre><code>test.txt   -&gt; thisname.txt  
  test1.txt  -&gt; thisname1.txt  
  bascic.vbs -&gt; thisname.vbs  
  basic1.vbs -&gt; thisname1.vbs
  </code></pre>
  
  <p>The following is what I have tried so far:</p>
  
  <pre><code>Get-ChildItem -Path $subfolder_path\*.* -exclude *.jpg, *.pdf |
      rename-item -newname { -join($jxl) + $_.extension }
  </code></pre>
  
  <p>This part of code rename only one one file i need to make increment on all duplicity extensions.</p>