title: Remove all files older than the specified one
body: <p>I want to remove all txt extension file that has last write date older than the last write date of the current one (00007.txt is the current file) but can't figure out a way yet</p>
  
  <pre><code>$a = (get-item C:\Users\Jimmy\Desktop\test\*.txt).lastwritetime
  
  $b = (get-item C:\Users\Jimmy\Desktop\test\00007.txt).lastwritetime
  
  
  while ($a[$i] -lt $b)
  {
  $i++
  remove-item $a
  }
  </code></pre>