Let me publish my utility written for combat 401 specially.
It's called cmdmpq and it's an alternative to winmpq.
Yes, winmpq supports command line, but it's command line is pretty ugly. Doesn't support spaces or special symbols in file and dir names.
And it also requires many separate dlls to work properly and i had troubles with winmpq on some OS versions.
So i rewrote it for command line-only (only adding files to archive) using opensource SFmpq library.
I use it in combat 4.01 installer to build custom war2patch.mpq based on different installer checkboxes.
Let me attach it here for everyone who want to use it.