Through scripting. There is an unoficcial wiki: https://ragnarrandom.com/uefpsew/index.php/Scripting
You can check the old manual on how to use scripts. The new version is partially incompatible with the old manual though. The new one is on the way.