Sorry for missing your response.
You could run an external batch file using the External Tools Configuration launcher. You will find it next to the Play button, with a “Suitcase” overlay. So if you already have a batch file which can only update the application.properties file, there’s no reason to create a Java program to do it. You can then run this before starting the server.
Hope this helps!