title: Capitalize the first letter of each word in a filename with powershell
body: <p>I want to change the names of some files automatically.</p>
  
  <p>With this code I change the lowercase letters to uppercase:</p>
  
  <blockquote>
    <p>get-childitem *.mp3 | foreach { if ($<em>.Name -cne $</em>.Name.ToUpper()) {
    ren $<em>.FullName $</em>.Name.ToUpper() } }</p>
  </blockquote>
  
  <p>But I only want the first letter of each word to be uppercase.</p>