There are three types of user-interface items you can use to construct your scripted right-click menu. The user-interface control types are:
menuItem
separator
subMenu