title: Using Get-childitem to get list of files -like $pattern or newer than any file -like $pattern
body: <p>as for now I have script to find files <code>-like '*ver1.0*'</code>, and it's working fine.</p>
  
  <pre><code>$files = Get-ChildItem "D:\path\" | where {($_ -like "*$version*.sql")}
  </code></pre>
  
  <p>List of files:</p>
  
  <pre>
  file_ver1.0_xx.sql
  file_ver1.0_xy.sql
  </pre>
  
  <p>But now I need to find files which look like before OR it's newer than it. </p>
  
  <p>For example, I need to find files with pattern: <code>*ver1.0*</code> or <code>*ver0.9*</code> whose <code>LastWriteTime</code> is newer than any <code>*ver1.0*</code> file.</p>