Taking that into account I have created a one line script containing the following code:

Del C:\Temp\*.* /c /f /h

No quotation marks and it is the only data in the file. The problem still occurs! Remembering that this works correctly if run AFTER the user has logged on, but not during the logon process. Weird eh?