You can implement a handler named "Load" in your MWScript script.
MoneyWorks will send the Load message to your script as soon as it is loaded. This typically happens at login or when the script is activated in the script editor.
Do any initialisation you need (such as loading persistent values from the database)
on Load // set up script properties or perform one-off task end