England were 263 for four when bad light ended lay 4.2 overs early.
A throw from Black Caps fielder Martin Guptill deflected off Stokes's bat while he was diving to reach his crease to complete the second run and the ball ran off to the boundary in the dying stages of the England run chase.
England won the fourth match by 74 runs to complete a 4-0 whitewash in the one-day international series.
The England captain said he was happy the team was able to conquer the nerves after a strange week leading up to the first match in Zimbabwe.
England go into the fourth Test in Melbourne, which starts on Thursday, 3-0 down in the series.\n\n
An unbeaten 86 by Mahela Jayawardene enabled Sri Lanaka score 226 in their second innings on day 4 of the first Test.
England are considering playing three specialist spinners in the opening Test match against Sri Lanka.\n\n
The former England captain believes believes England's job will be tougher this year because their bowling attack is inexperienced.
The 25-year-old, man-of-the-match after taking nine wickets in England's first test victory last week, has a hip injury.
England were 111 without loss at the close of day 2 in reply to Bangladesh's first-innings total of 203 in the first Test.
The Australian captain mirrors daunting records for England, as the teams ready for the semi-final clash in Champions Trophy.
The fast bowler took six for 46 as the West Indies were dismissed for 152 in their first innings and then added another two as the tourists ended the day 84 for two after following on.
'Showbiz' critics waiting for England to fail: Bairstow
England finished well on top after a fluctuating third day of the second test against West Indies at Edgbaston on Saturday.
South Africa's main strike bowler misses the fourth Test to attend the birth of his first child
"We got off to a reasonable start but we didn't capitalise on it," said the SA skipper.
The West Indies skipper dislodged Australia's opening batsman Matthew Hayden.
England, all out for 285 in the first innings, were still 466 behind West Indies' mammoth 751-5 declared after day four of the fourth Test.
Vaughan is regarded by Pakistan captain Inzamam-ul Haq as England's key player.
The England captain stroked a century from 19 boundaries and a six on the first day of a three-day Test warm-up match against Jamaica.
England were struggling at 53 for 3 in pursuit of an improbable 482 to win at the end of the third day