If the telnet interaction is as simple as you make it sound you could probably get a Tcl/Tk/Expect program up and running in a day. There's lots of example code you could find about interacting with ...
The disclosure and recent analysis of thousands of leaked telnet credentials paints a bleak picture of the state of IoT security. Shortly after the Mirai attacks, Johannes Ullrich of the SANS Internet ...