Hmmm... publish command does not have a command line version that I am aware of.
There was the DXFOUT command, but it seems it doesn't want to run from a script either in 2007 (what version of AutoCAD are you using?)
So the most versatile thing I can think of is to use the -PLOT command and specify all the specifics, and plot using the DWF pc3 file (there are two that come stock with 2007)
"DWF Classic (R14 look).pc3"
"DWF6 ePlot.pc3"
Here is a rough outline of the script to give you an idea...
;BEGIN SCRIPT
;Command: -plot
-PLOT
;Detailed plot configuration? [Yes/No] <No>: y
Y
;Enter a layout name or [ ?] <Model>:
;Enter an output device name or [ ?] : DWF Classic (R14 look)
DWF CLASSIC (R14 LOOK)
;Enter paper size or [ ?] <ANSI expand A (8.50 x 11.00 Inches)>:
;Enter paper units [Inches/Millimeters] <Inches>:
;Enter drawing orientation [Portrait/Landscape] <Landscape>:
;Plot upside down? [Yes/No] <No>:
;Enter plot area [Display/Extents/Limits/View/Window] <Display>:
;Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <Fit>:
;Enter plot offset (x,y) or [Center] <0.00,0.00>:
;Plot with plot styles? [Yes/No] <Yes>:
;Enter plot style table name or [ ?] (enter . for none) <>: .
.
;Plot with lineweights? [Yes/No] <Yes>:
;Enter shade plot setting [As displayed/Wireframe/Hidden]:
;Specify filename... (modify to suit)
$filepath$$filename$.dwf
;Save changes to page setup [Yes/No]? <N>
;Proceed with plot [Yes/No] <Y>:
;END SCRIPT
It's a bit of a workaround, and I hope it solves your problem, but it does publish a DWF file in the end.
Let me know how it goes!
Regards,
Bill