If you are running it in Debug mode when you get to this line
del "C:\Program Files\"+$File+"\*.*" /s /c

pay attention to what the error code returned is.

Using the ? @serror should tell you exactly why it is not deleting the files. From the output you posted earlier it is returning Access is denied.

If this continues to hold true, look at what the permissions for that directory are for the account that is running the script.
_________________________
Today is the tomorrow you worried about yesterday.