CustomGame.BackToMenu();
Syntax
public void BackToMenu()

Goes back to executing position after map load.

Example:

using System;
using CustomGameOW;

...

static void Main(string[] args)
{
    CustomGame cg = new CustomGame();

    // Start game when in lobby
    cg.ClickOption(GameOption.Start);

    // Wait until map finishes loading
    cg.LoadStall();

    // Go back to executing position
    cg.BackToMenu();
}

See also:

CustomGame.LoadStall()

CustomGame.ClickOption(GameOption option)