I have the same problem here. I tried running the script, but as you can see in the attached image, I get an error with a message "Object doesn't support this property or method" in line 11 (I guess it refers to Attr.PKForeignKeys.count).
I'm totally new to TDM, so I have no idea of how to fix this. Any help will be welcome!
from the screenshot I can’t see any problem but the script should work, we have just tried it again. If you want, you can send the model in which you experience the issue to us to modeling@quest.com and we will check it for you.