Look at here:
Maybe you get a clue for your script
I add some shared parameters to a folder of families with an excel file
Cheers