You can manually load the nrfjprog DLL when the application is running.
The following platform-specific code snippets describe how to load and call one function of the nrfjprog DLL. Remember that error checking should be done in each step of the code, but for simplicity this is not illustrated in the following code snippets.