Step-by-Step
- Set File Permissions
- Right-click
thirdpartyserver-win.exe - Go to
Properties > Security. - Ensure
Read & Executepermissions are enabled
- Install Node.js & PM2
- Download Node.js from nodejs.org
npm install pm2 -g
- Start the Executable with PM2
pm2 start thirdpartyserver-win.exe
You can also use Windows Task Scheduler as an alternative to PM2.
- Run as Administrator
Open `cmd` or `PowerShell` as Administrator before running PM2.
- Correct File Path Example
pm2 start "C:\\path\\to\\thirdpartyserver-win.exe"