title: Search and replace files and folders names with txt file support
body: <p>I have many folders and inside these different files. Each folder and their children files have the same name and different extension, so in the ABC folder there are the ABC.png, ABC.prj, ABC.pgw files, in the DEF folder there are the DEF.png, DEF.prj, DEF.pgw files and so on.
  With a script I have created a txt file with the list of png file names. Then I put in row 2 a new name for the name in row1, in row 4 a new name for the name in row 3, and so on. 
  Now I'm searching a powershell script that:
  - scan all folder for the name in row 1 and replace it with name in row2
  - scan all folder for the name in row 3 and replace it with name in row4 and so on</p>
  
  <p>I have try with this below, but it doesn't work.</p>
  
  <p>Have you some suggestions? Thank you</p>
  
  <pre><code>$0=0
  $1=1
  do {
  $find=Get-Content C:\1\Srv\MapsName.txt | Select -Index $0
  $repl=Get-Content C:\1\Srv\MapsName.txt | Select -Index $1
  Get-ChildItem C:\1\newmaps -Recurse | Rename-Item -NewName { $_.name -replace $find, $repl} -verbose
  $0=$0+2
  $1=$1+2
  }
  until ($0 -eq "")
  </code></pre>