Script to add VMX path to vSphere Client as a custom attribute

I love it when I have an idea in my head of a script I need to write, and then I run across one that does exactly what I need!

Hugo Peeter’s has written a script to add VMX location as a custom attribute.