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

Waits for map to finish loading.

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.BackToMenu()

CustomGame.ClickOption(GameOption option)