The text command in the in-game list is;
/mountbgm [subcommand] either [on] or [off].

(Toggle between on and off when no subcommand is specified).

Never tried it in a macro though so couldn't tell you if it works.