Accessing modifier commands with python in 3ds max

How do I tell Python script to execute the function of a button within a modifier? For reference, I’m using the MassFX Rigid Body and I want the script to “Convert to Custom Shape” (for building convex hulls).