I need to run a Python script from my C# program and see the result. But my below code isn't working, the working directory changes but it doesn't seem like Arguments part is run. The commented line (writeline) is me trying to send commands after opening cmd because sending them as arguments didn't work. That is giving an error (Message "StandardIn has not been redirected.) and Googling gave me that UseShellExecute needs to be false but that didn't work. Attached image shows how command prompt opens. private void run_cmd(string pathPythonExe, string pathPyFolder, string SN) { Process p = new Process(); p.StartInfo.FileName = "C:\\Windows\\system32\\cmd.exe"; p.StartInfo.WorkingDirectory = pathPyFolder; p.StartInfo.Arguments = pathPythonExe + " Z19003.py --sn " + SN; p.StartInfo.UseShellExecute = false; p.Start(); //p.StandardInput.WriteLine(pathPythonExe + " Z19003.py --sn " + SN); I've tried different ways to open cmd and run that I found online but nothing seems to work. Running the Python script works if I just copy-paste the command to command prompt. But I want to automate that part. Continue reading...