Reusing global scripts in actions