How do I access command prompt from Unity

I need to access command prompt to send it a command for phamtomJS to run a javascript file. So I need to tell command prompt to send this command at a certain point in the game and I’m not sure how I would have unity access command prompt to do this. I hope that was not too confusing. Any help would be great. Thanks

Hi,
if i understand what you need, you could try this:

void Start()
{
          
   string strCmdText;
   strCmdText= "/C notepad";   //This command to open a new notepad
   System.Diagnostics.Process.Start("CMD.exe",strCmdText); //Start cmd process
}

I’m using almost the same Method, it works in Play Mode. But when I build my Project this will not gone work. Anybody had a similar Problem? I would be so grateful for that

void Start()
{
      string strCmdText;
      strCmdText = "ykush3 -u " + Port.ToString();   //This command to open a new notepad
      System.Diagnostics.Process.Start(ApplicationPath + "\\hubControl\\ykushcmd.exe", strCmdText); //Start cmd process
}