When exporting AutoCAD drawings the model and all the layout spaces are exported
If only specific spaces are supposed to be printed you have to specify this in your script file. To be precise in the -OnExport parameter of the Export-Document commandlet. In the attached sample script you can see one possible way to do this.
More about the -OnExport parameter
More about Pdf export settings