To add a new menu item to a menu, use the AddMenuItem method. This method creates a new PopupMenuItem object and adds it to the designated menu.
The AddMenuItem method takes four parameters as input: Index, Label, Tag, and Macro.