The Edit User Defined Profiles dialog box with a script added to the Run section.
End of description.