New Zealand kept their Women's T20 World Cup campaign alive with a composed six-wicket victory over Scotland, surviving an early wobble before a 101-run partnership between Izzy Sharp and Brooke Halliday sealed a crucial win.