Shared parameters to project parameters and assign multiple categories depending on the parameter

Since i am working on centrelized shared parameter file, i could make work a builtin script in dynamo to create the parameters and even group them and define wheather instance or type , all this from an excel file, but the problem i found is when assigning categories, the actual script assign the parameters to all the pssobile categories in the list , which is good but not practical!
find files attached
Copie de Shared Parameters-Template-01.xlsx (10.5 KB)
dynamore shared parameters.dyn (32.1 KB)

i do understand that this should be the project parameters phase, but i couldnt figure out how to work it, anyone can help plz ?