adds the bash script to write the csv file.