11 May 2015 ... The executable may still be running and have the file locked giving you a error 5, Access Denied. You also may be getting the last exit code ...
Delete file(s) after processing - PowerShell Forums
This summary was compiled by our editorial team from publicly available information for quick reading. For full details, refer to original reporting where available.