Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = "hterm"; p.StartInfo.Arguments = Constants.SelectMisaApdu + Constants.UnlockMisaApdu + Constants.RegisterApdu + Constants.GetThirtySecurityDataApdus; p.Start(); output = p.StandardOutput.ReadToEnd(); Console.WriteLine(output); p.WaitForExit();