You can achieve the same result in C#. For that, you need to set the four environment variables and then launch the process.
Environment.SetEnvironmentVariable Method (String, String)[
^]
Process.Start Method (String, String)[
^]
Something like:
Environment.SetEnvironmentVariable("MYINFO_APP_CLIENT_ID", "MyInfo_SelfTest");
Environment.SetEnvironmentVariable("MYINFO_APP_CLIENT_SECRET", "password");
Environment.SetEnvironmentVariable("MYINFO_APP_REDIRECT_URL", "http://localhost:3001/callback");
Environment.SetEnvironmentVariable("MYINFO_APP_REALM", "http://localhost:3001");
Process.Start("npm", "start");
You may have to specify the full path to the npm executable.
Kindly.