PowerShell is not really that much more verbose. This is the equivalent of the nushell command by crabsand.
dir | ? LastWriteTime -lt (Get-Date).AddDays(-21) | del dir | ? LastWriteTime -lt (Get-Date).AddDays(-21) | del dir | ? lastwritetime -lt (get-date).adddays(-21) | del
PowerShell is not case sensitive (but nushell and bash are).