Help in creating dynamic group using powershell using Include group members

Does anyone have an example of a PowerShell script of creating a dynamic group based upon the "Include by group membership" & "Include Explicit" rules? I'm able to setup groups using the Include by query rule.

FYI, I tried following the instruction from IEDMMembershipRule in the SDK but not luck.