In InDesign open a document, select "File >Export". In the Format list you should see an entry for "DPS Article".Also, you should launch Creative Cloud to see if there's an update available. I don't have a screenshot of that handy.
The lock file issue is because the doc isn't actually closed. Change line 14 from "doc.close;" to "doc.close();" and that will clear that up.franciscon89715259 the script worked fine in with my install. Are you certain the DPS plug-ins are installed?