New Zealand beat Bangladesh by two wickets at the Oval on Wednesday as they made it two wins from as many games at the ICC World Cup 2019.