"Generate .m script" to run wMEM

Thanks a lot @Francois! It works. This will make things much easier!

I have an additional question/doubt; it's about the baseline that is used when computing the wMEM. We have a set of imported epochs named "baseline" that we want to use as such when computing the wMEM (see screenshot below); so, we select the option "default (baseline dataset)" when running it.
My concern is whether this implies that all the baseline epochs are used or only one of them.
I have this concern because, if I look at the wMEM output exported in Matlab (see 2nd screenshot below), I see that for Baseline it is only reported one epoch (#1). Am I misinterpreting this? If not, is there a way to use all the epochs?
Thanks again!

20 Epochs imported for baseline:
image

MEMoptions:
image

Baseline history:
image