In addition to having a profile option to execute a command after the profile is loaded, I think it would be useful to have an option to execute a command prior to switching profiles or app shutdown.
For example, a one-stop profile variable/state save command.
Thoughts?
EDIT by Pfeil: The "Execute a command each time this profile is loaded" and "Execute a command each time this profile is unloaded" options provide the requested functionality.