For those who are looking for a working parse_metrics.sh file in the manual for Variant Calling Pipeline using GATK4 at https://gencore.bio.nyu.edu/variant-calling-pipeline-gatk4/
command to run from terminal:
./parse_metrics.sh sample_id > sample_id_report.csv
Where sample_id is your sample name