Adding item to hamburger menu at runtime

I know it is possible to add an item to a hamburger menu at runtime. So how would I add an action (eg. a ChangeForm() ) to the new item on the menu?

Here’s the code to handle a click for the Hamburger control:

Hamburger1.onclick = function(s) {
    if (typeof(s) == "object") {
        return;
    }
    if (s === "Sign Out") {
        Hamburger1.hide();
        butSignIn.show();
    }
    if (s === "Change Password") {
        // todo
    }
    if (s === "Change Email") {
        // todo
    }
    if (s === "Delete Account") {
        // todo
    }
};

Just add another if statement:

    ...
    if (s === "Form2") {
        ChangeForm(Form2)
    }