CB-4780 update script with windows support