"Docker Failed to Initialize" when starting Docker Desktop.exe from a batch file

Hi all,
I wrote a script for an application that starts Docker for Windows if it is not already running. The batch file runs without issue if I execute it by itself, or if I execute the particular command to start the Docker Desktop.exe executable from the command line, but when I run the batch file from within my node.js application, I am getting “Docker Failed to Initialize: Item has already been added. Key in dictionary: ‘Path’ Key being added: ‘PATH’”

Screenshot 2020-11-10 152305

The command that causes the error is:

start /wait "" "C:\Program Files\Docker\Docker\Docker Desktop.exe"

Let me know if uploading any logs/ diagnostics would be helpful.

Thanks!