script for restart another device

hello

I want to run script like this

system telnet 192.168.100.10
user: admin
password: password

reboot

is it possible using mikrotik script?

Like this ??

http://wiki.mikrotik.com/wiki/Manual:System/SSH_client#Executing_remote_commands