Script solution