Not sure if I'm done with this just yet, but found it useful, and thought I'd share... Just be mindful to check the version year, etc.
Using the Script above, and this alternate 'plot_from_shell.bat' file:
“C:\Program Files\Autodesk\AutoCAD 2016\accoreconsole.exe” /i %1 /s “C:\CAD\plot.scr” /l en-US
... In concert with this Shell context menu:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\RightClickDwgToPdf]
@="DWG To PDF"
"AppliesTo"=".dwg"
"Icon"="C:\\Program Files\\Autodesk\\AutoCAD 2016\\accoreconsole.exe"
;;"Extended"=""
;;"HasLUAShield"=""
;;"Position"="Top"
[HKEY_CLASSES_ROOT\*\shell\RightClickDwgToPdf\command]
@="\"C:\\CAD\\plot_from_shell.bat\" \"%1\""
... You can now 'Right Click + Plot' any DWG to PDF in-place, straight from File Explorer, using AcCoreConsole.exe in
parallel.
Cheers