For each "wimjoin" command there is a corresponding "wimexport" command that basically does the same thing. It doesn't matter which you use.
The output file will be newly created, so "wimoptimize" won't remove any holes from it as they won't be any. However, if you use "wimoptimize" to recompress the file it might save space.