Ghana international Kudus Mohammed registered his sixth Premier League assist against Luton Town in West Ham United's comeback win at the London Stadium on Saturday afternoon.
Albert Sambi Lokonga's first-half opener threatened to turn the penultimate game of Moyes' tenure into a damp squib while breathing new life into the Hatters' survival fight.
But Moyes rallied his troops at half-time and Luton were unable to repel the hosts after the break.
James Ward-Prowse drove home the 54th-minute equaliser after Thomas Kaminski had turned Jarrod Bowen's cross-shot into his path.
Tomas Soucek fired the Hammers in front with a brilliant first-time volley from 25 yards when Luton cleared a corner straight to him 11 minutes later.
Mohammed Kudus should have added a third as the hosts dominated the second period, but the midfielder only managed to hit the post from 10 yards out when unmarked.
But that miss did not matter as 19-year-old George Earthy, on as a substitute for his second league appearance, turned in Kudus' cut-back from close range.
The result leaves Luton three points behind fourth-bottom Nottingham Forest with only one game left to play and a significantly worse goal difference.
Kudus Mohammed has scored 13 goals and provided six assists in 44 appearances for West Ham United in his debut season.
He joined the Hammers from Dutch Eredivisie giants Ajax during the last summer transfer window.

