Need help with creation of command

I found a response that should partially help answer your question here

Though it only allows for up to 6 messages