I have an instrument  and I can telnet it to using telent 192.168.100.2 2000 from cmd window. This will open up a terminal and I can give commands to the instrument. For example, a command like "/tgc/rf/tx1 set gain_target -2.0". This works fine. Is there a way I can  give these together in a single step; something like this :
telent 192.168.100.2 2000 /tgc/rf/tx1 set gain_target -2.0.
Thanks.
 
    