C# is not a scripting language. Post in C# forum.
Note that there is no way to remotely inter5act with a shell in C# or in any language. You can use WinRM from Windows to Linux if WinRM support has been installed and configured on the Unix system.
Post in C# developers forum to learn how to use WinRM with a C# form.
You still cannot access an existing shell but you can execute Unix shell commands on the remote system.
\_(ツ)_/