Simulate recordings

Can anyone tell me how to generate the script for the Model evaluation > Simulate recordings step you can perform in the GUI by right clicking on the source localization model? I've looked at both the source localization and the simulation tutorial, but there isn't a lot of information on scripting.
Thank you,

Hi Rebecca,

That menu uses the function bst_simulation()

The function takes as argument the (full or) relative path to the Brainstorm source file.