I only know of puTTY, but doubt that it's scriptable enough.

Here's Google's best bet:

http://www.sofotex.com/download/Networking/Telnet/more3.html