$farms = array( array('Farm-1','127.0.0.1',4001), array('Farm-2','192.168.1.2',4002) );Last step check that folder where script placed is WRITEABLE :P Script will save backup configs and working profiles.
"api-allow":"W:127.0.0.1", "api-listen":true, "api-port":"4001"W option before allowed IP is very important - for miner restarting