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
It works in PowerShell pretty much the same way as Chris Ballance's solution in JScript:
$shell = new-object -comobject "Shell.Application" $folder = $shell.Namespace("") $item = $folder.ParseName("") $item.InvokeVerb("delete")