update automation script