Opening an app is easy:
Process p = new Process();
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"Path to file";
psi.Arguments = $"List of arguments to start it with";
psi.RedirectStandardInput = true;
psi.RedirectStandardOutput = true;
p.StartInfo = psi;
p.Start();
And sending data to it is also simple:
StreamWriter sw = p.StandardInput;
sw.WriteLine("username");
sw.WriteLine("password");
sw.Close();
}