Rather than specifically having a pre and post script option, could the ability to execute scripts be handled as a step in the scene (Add Device, Add Pause, Add Script)? This would provide additional automation flexibility.