Calling root from bash script

Dear root experts,
I have several root macros which I want to compile and run in root. I have made a bash script for it.
The simple example of the script is
Name:RunMacro_1_to_3.sh
and it contains following lines

root -b -l <<EOF
.L Job_PsiRatio_Eff_PP_Numbers_1.C+g
PsiRatio_Eff_PP_Numbers_1();
.L Job_PsiRatio_Eff_PP_Numbers_2.C+g
PsiRatio_Eff_PP_Numbers_2();
.L Job_PsiRatio_Eff_PP_Numbers_3.C+g
PsiRatio_Eff_PP_Numbers_3();
EOF

To run it, I do in command prompt ./RunMacro_1_to_3.sh

It runs successfully but I want to include one more functionality. I want the script to quit root (.q) after
finishing first macro then call it again compile the second one, run the second one and so on.
My macro is simply doing some calculations and writing the results in a text file.

Please suggest some way to do it.

with regards,
Vineet