Give telnet command to another router with a script

Hello I’m wondering how to give a telnet command to another router (which has not routeros) with a script.
When I had DDWRT I used this script:

(sleep 1; echo 'admin'; sleep 1; echo 'mypassword'; sleep 1; echo 'adsl configure --snr 72'; sleep 1 ) | telnet 192.168.1.1

I don’t think it’s possible with telnet, but you can do it with SSH. http://forum.mikrotik.com/t/script-telnet/63509/1