Also, what does:
"NB:
@Fill_Factor, @PAD_Index will only be applied to index that are rebuilt (Fragmentation >= @ReBuildTheshold)
***There is a possible issue with database names containing GUID's***"
What's the possible issue? You mean if you use a GUId in the name there may be problems/