Scripting data import and export

Hi, in my recent open-source project I need to employ brainstorm for its powerful and robust function of EEG data import. In general I did this by clicking buttons in Matlab, but I need to script these operations into .m script, so that I can compile it into Python package. Appreciate if you can give me some insights, thanks!

Have a look at this tutorial for instance, which describes GUI operations for a full data workflow and also provides the equivalent script at the bottom of the page, for your inspiration.

Thank you so much! It seems to be what I need.