When running a DMS script more than once, the subsequent runs fail because of FileSystemObjects remain open after the script finishes.
Resolving the problem
An enhancement has been submitted to have the script close all FileSystemObjects it opened upon completion. A possible work around is to put error handlers in every part of the script. The error handlers will prevent a failure if the script fails during one of the parts that aren't user-scripted, but if an error handler catches the error, it avoids the crash and shouldn't leave files and objects open on the subsequent runs.