This JScript script ("nwmain.js") saves the "nwclientlog1.txt" and "nwclienterror1.txt" files to timestamp named files before starting "nwmain.exe".
It reads the Registry and the "nwn.ini" file to get the correct folder locations. It passes any command line arguments to "nwmain.exe".
This JScript script can go anywhere; typically, you would put it in the NWN home folder.
As a suggestion, you would change your shortcuts that point to "nwmain.exe" to point to "nwmain.js". This way, the client log files are backed up each time you run this script, before it runs "nwmain.exe".
As an example, if you had a shortcut to your favorite persistent world which had the following in the "Target:" field (from *right-click*,Properties):