Ok, i've added the $Nul valiable to the Dim's. I don't get the undefined variable error anymore...
I ran the script, and it properly removes the registry entries from 'wrender-lap' but does not seem to remove them on the remote computer 'fe-crosstec'.