Passing arguments, writing a help menu, and debugging can be burdensome. However, the getopts command, Heredoc, and the "set ...
Then I discovered ttyd, with which I was able to turn my Linux shell into a live, shareable session in less than 30 seconds.