Check out example codes for "how to execute command line in c# and get response". It will help you in understanding the concepts better.

Code Example 1

using (Process p = new Process())
{
	// set start info
    p.StartInfo = new ProcessStartInfo("cmd.exe")
    {
    	RedirectStandardInput = true,
        UseShellExecute = false,
        WorkingDirectory = @"C:\"
    };
    // event handlers for output & error
    p.OutputDataReceived += p_OutputDataReceived;
    p.ErrorDataReceived += p_ErrorDataReceived;

    // start process
    p.Start();
    // send command to its input
    p.StandardInput.Write("dir" + p.StandardInput.NewLine);
    //wait
    p.WaitForExit();
}

Learn ReactJs, React Native from akashmittal.com