Lua Code:
SLASH_YOURUNIQUENAMEHERE1="/command" -- SLASH_ and 1 are required
SLASH_YOURUNIQUENAMEHERE2="/comm" -- increase the number for aliases
SlashCmdList["YOURUNIQUENAMEHERE"]=function(arg) -- the name you used without SLASH_ or a number
-- arg is a string with everything typed after the command, including spaces
end