Do save as a vbs file before running from the command line with
C:> CSCRIPT opensmoothcloseexit.vbs simplebox.tsm. Also make sure that you have the Tspline add-in installed.
If I comment out the tsSmoothToggle command and replace the mesh box with a Brep box, the script runs as expected - closes that is. I don’t have T-Splines - sorry…
Running VBScripts from network drives is kind of beyond our scope of support. You will need to spend some time in Google to see if you can figure out what’s going on and how to work around it.