Parameterised the shell script and the AGL staging-to-consumption query