Renaming family parameters in a project

Hi Alsh, I am trying to use the Dyn you shared for renaming family parameter, however I have got warinng, the FamilyDoc.Parameters does not return element names as shown in your screenshot. Refer the attached. How can I get element names from the out of FamilyDoc.Parameters? Thanks