Update environment script