You're right - you need the $$w file, so you can't call the map compiler directly. You must use the WED command line then.
WED -w level.wmp
resp. WEDS when you use the distributable level editor.
I believe the dialog can't be switched off. Level compiling needs a lot of CPU resources - without dialog the user would not know why his PC is suddenly so slow.