Upload Script Running On Start

So i’m trying to use the same logic from the JSDev Environment to run a FileMaker script when the project is built.



I have three scripts. A build script, an upload script and a start script.



When I run the start script it builds the app, but the upload command doesn't run until I do Ctrl-C to exit the web server.


Then the upload script runs.

Does anybody know of a way to have the build and upload run one after the other automatically?