Need help converting a menu with a keybind to a chat command

As more and more scripts become available for redm it seems more and more that key binds are starting to overlap to the point where too many share the same key bind. I have a couple scripts that have menu’s bound to keys and would love to convert them to chat commands instead. I have looked and found a few possible fixes but have not been able to get them to work.

If anyone can help with this I would really appreciate it and I am sure the community as a whole would as well. Below is a link to one of the scripts I am referring to.