You can set any arbitrary command within the active profile to run when the profile loads and/or is unloaded (I.E. before switching to another profile or closing VoiceAttack) using the "Profile Exec" tab of the "Profile Options" window, which is opened by clicking the "Options" button next to the "Profile Name field on the "Edit a Profile" window.