run_measurement: new script for automated measurement