title: Rename bulk files with given name, in directory and subfolders using PowerShell
body: <p>I’m looking for a solution to rename all files with given name in the directory and subfolders.</p>
  
  <p>E.g.
  There is a directory called <code>c:\blah</code> and in this folder, there is one file called <code>BaR.txt</code> and one folder called foo. In the <code>foo</code> folder, there is another file called <code>bAr.txt</code>. 
  I want to find all files with name <code>bar.txt</code> and change the name of each file to “neo.txt”. It must also be possible to rename the files to lower case as well e.g. <code>bar.txt</code>.
  So far, I’ve tried to do this manually using the Windows Explorer in Windows10 but for some weird reason when I try to rename the bulk files there is extra “(1)” sign added to the end of each file name.
  I’ve tried to play with PowerShell and I created a command</p>
  
  <pre><code>$_.name -replace 'bar.txt','neo.txt'  
  </code></pre>
  
  <p>But it didn’t work for me.</p>