msi: Add the Session object as a global member to custom action scripts.