Creating the folder and share should not be done in the logon script but rather in an admin script.

You USE line is missing a \.

Use H: '\\server1' +@UserID+'$$'

should be:
Use H: '\\server1\' +@UserID+'$$'
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.