Hi, I want to create a menu option

I have a code to create a Product.

i want to create this as a menu option in the solidworks.

How will i do it?.

SolidworksApi macros