If I have a menu object name in a string sObjectName, how can I do the following to make the menu choice visible or not?

Set pbVisible of sObjectName to True/False
Seems like I need to somehow obtain the object_id or handle from the string to get this done. Any ideas?