I am trying to open Telnet.exe and try to send commands.
How can I spawn telnet, get the handler and use the handler to send
commands in Windows?
I have tried to send telnet commands using socket (Net/Telnet) and
perfectly works fine. I wanted to know, if there a way similar by
spawning Telnet.exe.
Marc gave you exactly what you need to move forward.
At some point in time, you're going to need to actually learn ruby. I suggest finding a book or online resource that works for you and reading it. Twice.