Creating a replica with replication settings already set via script

hello - I am trying to create a script I can mail out in a button to create a new local replica on someones workspace. I can do that but what i cannot do is set the replication settings for that new replica without having to replicate it all first - I can set the replica settings of an existing replica but not set it on first replication - any ideas??