This is theoretically possible. GED works this way. You can either use a WED command line, or call wwmp2wmb.exe directly. The wwmp2wmb command line options are not dicumented, but you can see them when you compile a map with Log option enabled.