From iOS 17.4 we can use performPrimaryAction() method to trigger menu programatically
performPrimaryAction()