title: Deleting bulk files with the same extension while preserving files with the same extension
body: <pre><code>Get-ChildItem "I:\TEMP_Dir_SSN\" | %{
      if($_.name -ne "fullpath.txt" -or $_.name -ne "SSN_FILES.txt"){
          remove-item $_.fullname
      }
  }
  </code></pre>
  
  <p>There are two files in the same directory that I don't want to delete. I want to delete all but two .txt files. They need to be preserved in the same directory. However, the rest is garbage and can be removed.</p>