Turning on customphysicalproperties through a script?

All I need to know is how to turn on custom physical properties through a script while it’s disabled because when it’s disabled it always returns with nil do I have to just set custom physical properties to my properties and it will be enabled by that?

nvm my idea from the post worked