That way I can use that to declare the rightMenu for the menuItems I want to populate, or doing other edits/queries.
Sure:
from maya import cmds selectedPickerItems = cmds.MGPickerView(q=True, select=True) print ('Selected: %s' % selectedPickerItems)
Reference for MGPickerView command.