Verify that your samAccountName matches @USERID, if not change the script from samAccountName to just Name.