The Script adapter allows you to run script instructions in your simulation process.
About the Script Adapter Creating Scripts About Parameters Within Scripts