Note: Make sure to run this script from domain server.
Put PSTools, server-hosts.txt and Motadata_agent_installation.ps1  in same folder and update below variable in script

$sourcefile = "C:\Users\Administrator\Desktop\Agent\Motadata Agent.exe"

please update PUBPORT=9449  SUBPORT=9444  URL=172.16.10.11  respectively at below line
Start-Process 'c:\Motadata Agent.exe' -ArgumentList '/exenoui /qn PUBPORT=9449 SUBPORT=9444 URL=172.16.10.11' -Wait