Next to bat was skipper Kane Williamson, who built a 41-run partnership for the second wicket along with Colin Munro, until the latter was sent back by Alam in the 8th over.
Ross Taylor came out to bat at number four after the fall of Munro's wicket and added 89 runs along with Williamson before being dismissed by Alam.
Despite the fall of wickets, New Zealand managed to bounce back as Williamson (79) and Tom Latham's (13) 43-run stand took the Blackcaps over the line, securing their third consecutive win in the World Cup.
Earlier, Afghanistan lost the toss and were put to bat first by the Kiwis. Hazaratullah Zazai and Noor Ali Zadran gave a steady start to the Afghanistan inning and stitched a 66-run partnership for the opening wicket. Zazai (34) was sent back to pavilion by James Neesham in the 11th over.
Afghanistan lost two quick wickets without adding a run to the scoreboard. Zadran (31) gifted his wicket to Lockie Ferguson in the 12th over, and Neesham returned to get rid of Rahmat Shah (0) who came to bat at number three, reducing Afghanistan to 66 for the loss of three wickets.
While Shahidi stood firm on one end, none of his teammates was able to support him. Nobody in the middle order was able to reach a double-digit figure, expect Shahidi, who scored 59 crucial runs to set a target of 173 for the Blackcaps.
Neesham was the pick of the bowlers for the Kiwis, as he secured five crucial wickets. Fergusen scalped four wickets to help New Zealand restrict Afghanistan to 172 runs.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)