The new AUI_MENU opcode MNUOP_RST (7) can be used to reset the main A-Shell menu back to the way it was when A-Shell was first launched:
xcall AUI, AUI_MENU, mnuop_rst, 0, mnu$, 0, 0, "", """, status
As with other AUI_MENU commands, STATUS will be set to 0 on success. But on failure, it will return the negative version of the OS error #, which you can translate using MX_ERRNOMSG.
MNU$ can be "" for the standard menu (aka "MIAMEMENU") or you may select a language specific menus by specifiying "MIAMEMENU-xxx" where xxx is the LDF language definition (e.g. "SPA", "ITA", "POR", "FRE", "CDN" etc.) If there is no specific menu for the requested language, the default version (American English) will be used. In this case, the return status will be -2 (indicating that the requested menu was not found).
In the case of ATE, the menu items will be reset to the way they are at the start of an ATE connection.