Hacker News new | ask | show | jobs
by IdiotSavage 46 days ago
Sorry. Fixed it for you.

  dir | ? lastwritetime -lt (get-date).adddays(-21) | del
PowerShell is not case sensitive (but nushell and bash are).