Updated `FindMenuItem` method to search in the main and specified menus (#166).