Finds a menu item id by matching the menu item name. If no matching menu item is found, -1 is returned.