How to create a script to remove all files ending with ‘~’ in Powershell (if you’re too chicken just to pipe into remove-item)

dir -recurse *~ | select @{L=‘comm’;E={‘remove-item ' + $_.fullname}}