Im asking just in theory also its iteresting for me because in my envirovemnt would be awesoem to have this program ....
anyway i have it solved by SLASH ...
As you said LUA can do a lot of things so here i have it
SLASH_ALASTORSOCK1 = "/SockA"
SlashCmdList["ALASTORSOCK"] = function(msg)
SCM(".add 44069", "guild")
SCM(".add 41611", "guild")
SCM(".add 43127", "guild")
SCM(".add 39682", "guild")
SCM(".add 39683", "guild")
SCM(".add 41307", "guild")
SCM(".add 40111 4", "guild")
SCM(".add 40124 4", "guild")
SCM(".add 40119 16", "guild")
SCM(".add 36767 3", "guild")
SCM(".lea 50270 ", "guild")
DEFAULT_CHAT_FRAME:AddMessage("124cffFF0000ALASTOR'S Sockets Added124r")
end