Build a script to generate the graphs