title: How to loop through files (full path) in PowerShell
body: <p>How do I do the equivalent in PowerShell? Note that I require the full path to each file.</p>
  
  <pre><code># ksh
  for f in $(find /app/foo -type f -name "*.txt" -mtime +7); do
     mv ${f} ${f}.old
  done
  </code></pre>
  
  <p>I played around with Get-ChildItem for a bit and I am sure the answer is there someplace.</p>