Actually.... add this nice little snippet to your lua and what i posted before becomes a valid function...
Also im trying to make calls to other addons slash commands not ones built into wow.
Code:
local function RunSlashCmd(cmd)
local slash, rest = cmd:match("^(%S+)%s*(.-)$")
for name in pairs(SlashCmdList) do
local i = 1
local slashCmd
repeat
slashCmd = _G["SLASH_"..name..i]
if slashCmd == slash then
-- Call the handler
SlashCmdList[name](rest)
return true
end
i = i + 1
until not slashCmd
end
end