Command to run after making changes to a server script

I am writing a script to run form “Command to run after making changes to a server” Among many other thing I have the script creating a user for each newly created domain.

I have not yet been able to get the create user section of the script to uncheck the “Deliver to this user normally” check box and check the “Forward to other addresses” check box along with adding an email address to the forward to text box. Is there a way to unset/set/add to these from within a script?

Any info on this would be helpfull. Thanks.