First of all, I searched a lot to avoid asking a duplicate question. If there is one, I will delete this question immediately.
All the solutions on the web are suggesting to use Process.StartInfo like this one
How To: Execute command line in C#, get STD OUT results
I don't want to run a batch file, or an .exe.
I just want to run some commands on cmd like
msg /server:192.168.2.1 console "foo"
or
ping 192.168.2.1
and return the result if there is one.
How can I do that ?