How to create an executable file

I have an open source code which was designed in React and I am trying find out how to make it into an executable file .exe

The instruction which I was giving as following only go so far:

1/ Open cmd
2/ Go to directory of file
3/ Type npm install - this will install the dependency
4/ You can use:
- running in developer mode: npm run dev
- packaging to windows: npm run package-win


What would this executable do? Just run the commands you have listed? Will it launch the browser with the React app running inside it?