As this is your first post: welcome to the Servoy Community Forum.
By default Servoy ships the ‘window’ plugin.
With this window plugin you can grab the menubar object and from that you can drill down to the menu and menuitems.
The menuitem has a function ‘doClick’ which will trigger the defined action for this specific menuitem.