Scripting Telnet Question

I need to use netwatch stacked up to figure out when a modem locks up. The site has a BlueBolt that can accept a telnet command to cycle the outlet.

Opened up new terminal and sy telnet 192.168.1.106 connected me.
Then issuing #CYCLE 4:20
Turned off the Outlet then back on 20 seconds later.

So that is exactly what I need/

Is there some way to script this so I can trigger it?