title: Recursively renaming files with Powershell
body: <p>I currently have a line to batch rename files in a folder that I am currently in.</p>
  
  <pre><code>dir | foreach { move-item -literal $_ $_.name.replace(".mkv.mp4",".mp4") }
  </code></pre>
  
  <p>This code works perfectly for whatever directory I'm currently in, but what I want is to run a script from a parent folder which contains 11 child-folders. I can accomplish my task by navigating to each folder individually, but I'd rather run the script once and be done with it.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>get-childitem -recurse | foreach { move-item -literal $_ $_.name.replace(".mkv.mp4",".mp4") }
  </code></pre>
  
  <p>Can anyone please point me in the right direction here? I'm not very familiar with Powershell at all, but it suited my needs in this instance.</p>