I need some help on how to open File Properties using a macro button and add a new line

I am looking for a macro to open "File Properties" then under the "Custom" tab, add "Material" under property name, add "text" under type, and add "Material" for the value/text expression.

SolidworksApi macros