Can't write image file to DVD using NeroCMD

I am trying to write a DVD with nerocmd. Seems like NeroCMD is wanting CD-R/RW, I am requesting DVD. I am able to write this image to DVD media using NeroBurningRom. Can anyone tell me what I’m doing wrong?

I get the following error:

Last detected media: DVD-R
Requested media: CD-R/RW

Sorry, your compilation cannot be written on this kind of disc. Please insert a
disc of the correct type or modify the settings of your compilation to make them
compatible with the current disc.

I use these options to nerocmd:

“C:\Program Files\Ahead\Nero
erocmd” --write --drivename E --real --dvd --media_type media_dvd_any --image D:\IMAGES\dvdimg.iso --underrun_prot --no_user_interaction

From neroerr.txt :
Windows XP 5.1
WinAspi: File ‘Wnaspi32.dll’: Ver=, size=160016 bytes, created 6/17/2003 7:25:03 AM
ahead WinASPI: File ‘C:\Program Files\Ahead\Nero\Wnaspi32.dll’: Ver=, size=160016 bytes, created 12/16/2003 7:18:06 PM
Nero API version:
Using interface version:
Installed in: C:\Program Files\Ahead\Nero


12:14:13 PM #1 Phase 90 File APIProgress.cpp, Line 253
Buffer Underrun Protection activated

12:14:13 PM #2 Text 0 File Reader.cpp, Line 118
Reader running

12:14:13 PM #3 Text 0 File Burncd.cpp, Line 3101
Turn on Disc-At-Once, using CD-R/RW media

12:14:15 PM #4 Text 0 File DlgWaitCD.cpp, Line 240
Disc check failed: Medium not allowed (Wrong CD)

12:14:15 PM #5 Text 0 File DlgWaitCD.cpp, Line 245
Write in overburning mode: FALSE

12:14:15 PM #6 Text 0 File DlgWaitCD.cpp, Line 2085
Recorder: PIONEER DVD-RW DVR-106D;
CD type reading failed
ATIP Data: ?

12:14:15 PM #7 Text 0 File DlgWaitCD.cpp, Line 406
>>> Protocol of DlgWaitCD activities: <<<
Compilation cannot be written on that medium type.
(Medium in drive: DVD-R. Medium required by compilation: CD-R/RW.)

See thread

This happened to me. I was accidentally using the CD section of Nero instead of the DVD section. The GUI is confusing.