I have a puppeteer progam that I execute by entering c:\myProgram>node index.js
in the command prompt. Instead of entering this in the command prompt, I would like to have the command run from my PHP program.
Something like this pseudo-code:
When button is clicked,
call function
Where the function will enter the command in the command prompt for me. I am using Visual Studio Code and the integrated terminal could be used instead (I think).
What code could replace call fucntion
in my example?