How to create a Job for Merge Replication?
When you create your replication, it will automatically create a job with all of the steps needed for replication if you use the GUI. 

Step 1: Merge Agent Startup Message. Type T-SQL ran on the distribution database

Step 2: Run Agent. Type Replication Merge. The command will be something like:
-Publisher [] -PublisherDB [] -Publication [] -Subscriber [] -SubscriberDB []   -Distributor [] -DistributorSecurityMode 1 

Step 3: Detect nonlogged agent shutdown. Type T-SQL sp_MSDetect_nonlogged_shutdown @ subsystem='Merge', @agentid=