As pointed out, Telnet has problems. I use RISC OS, where writing a script is only a few keystrokes. Dropping the script into a Telnet window, a few lines at a time, is simple and works.
But as has also been said, the script should be on the server. But then how do I run it? The custom software...