a custom scripted policy

do you have any details about creating a custom scripted policy, i want to use it to get notification email for any change in domain admin group members.