REPLMERG.exe cannot connect to distributor
REPLMERG.EXE . . . -DistributorSecurityMode 0  . . .

Per the command line parameters for replmerg.exe

-DistributorSecurityMode [ 0| 1]
Specifies the security mode of the Distributor. A value of 0 indicates SQL Server Authentication Mode
(default), and a value of 1 indicates Windows Authentication Mode.

But you did not include
-DistributorLogin distributor_login Is the Distributor login name.
-DistributorPassword distributor_password Is the Distributor password.