By default when you delete a file using PowerShell it\'s permanently deleted.
I would like to actually have the deleted item go to the recycle bin just like I would
Here is a shorter version that reduces a bit of work
$path = "" $shell = new-object -comobject "Shell.Application" $item = $shell.Namespace(0).ParseName("$path") $item.InvokeVerb("delete")