I would like to run a set of commands that would typically be run in telnet(from c#).
For example I would like to run the following
using System; using
Coding this may be hard. However, there are free tools out there for Telnet scripting, see Expect for one. If you have an C# application then perhaps your code could generate the Expect script and then run Expect?