Yes, you can use the command line for the conversion of DWG to DXF using the "Teigha File Converter" program for Windows.
do you happen to have any manual on how to use command line?