Pretty sure it's:

Code:
/script GrantLevel("CharacterName", 1);
Or

Code:
/script GrantLevel("target", 1);
Then

Code:
/script AcceptLevelGrant();
Or

Code:
/click StaticPopup1Button1
I'm pulling this from something old so my syntax may be off.