Epoch EEG data using a script

The file type for EEGLAB files is not 'SET' but 'EEG-EEGLAB'.

For writing Brainstorm scripts, always start by generating code that works with the pipeline editor, and then modify only the options you need:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Starting_a_new_script