Yeah...
I eventually got it done. A little C++ calling the appropriate APIs and it‘s done, one more reason for me to learn proper coding. Anyway i didn‘t stop there and started coding my own tool to replace all those messy batches and JavaScripts, and development is going along pretty well. Hooray for C++.