File not found at new WindowsPtyAgent when using pty for a spawn process of running another file through cmd
I am working on a Desktop app with electron framework which always has a terminal open the output of the processes run is shown in that terminal. I am using node-pty for this but when I try to pass a file using spawn process to be run on cmd, it just gives me the following error of file not found: enter image description here