PLAT-1407- change script to accept input parameters