NVidia DDS Photoshop Plugin - save via script problem

Simple issue - I’m saving thousands of textures to .dds via Photoshop. I’ve created a .jsx script to do this via the ExtendScript debugger for Photoshop, and have used the Javascript Listener to capture the output of me manually saving a .dds file. Unfortunately, this often crashes at the execution line:

executeAction( idsave, desc2, DialogModes.NO );

So I’m curious if there is a more direct way to access this DDS plugin via javascript or any non-manual method? Batch file? Anything?

Many thanks!