Code:
CreateFrame("Frame", "OptionsPanel")
OptionsPanel.name = "YourAddon"
InterfaceOptions_AddCategory(OptionsPanel)
SlashCmdList["ABCSlash"] = function()
InterfaceOptionsFrame_OpenToCategory("YourAddon")
end
SLASH_ABCSlash1 = "/abc"
Thank you.
It doesn't work better than my original script but we'll see on next PTR versions.