The function with an addon (name/setting table) passed is primarily to open the addon settings to a particular addon.
You could:
Lua Code:
Settings.OpenToCategory()
SettingsPanel.AddOnsTab:Click()
To open the menu and click the AddOns tab to set focus to it.
InterfaceOptionsFrame_OpenToCategory has been deprecated and replaced by
Settings.OpenToCategory.