for file in $ZOOX_WORKSPACE_ROOT/experimental/pmukundan/generated_scenarios/*
do
    filename=$(basename -- "$file")
    extension="${filename##*.}"
    filename="${filename%.*}"
    if [ $extension == "pbtxt" ]; then
        echo "Running //experimental/pmukundan/generated_scenarios:$filename"
        bazel run //sim:launch -- local planner //experimental/pmukundan/generated_scenarios:$filename --simulator_args="--params-kv sim/chum_output_path=/mnt/nautilus_rw/tmp/priam-debug/$filename --params-kv sim/chum_output_variant=GEN_GUID" 2>&1 | tee $ZOOX_WORKSPACE_ROOT/experimental/pmukundan/generated_scenarios/$filename-run.log
    fi
done

