The four-year-old Spartakos, ridden by jockey Sam James, made all the running in the Gaspara Asset Management Classified Stakes, which was contested over seven furlongs.
The 5-1 shot faced a challenge from one furlong out but stayed well to hold on and win by a neck from second-placed Sin E Shekells, a 14-1 shot.
Back in third place was Irish challenger Magical Effect, which was rated a 13-2 chance.
The victory by Spartakos was Borders handler Scott’s second winner within the space of 24 hours.
In pictures: Kelso pair among winners as Border Games season concludes at Morebattle
Injury-hit Southern Knights muster reinforcements ahead of trip to Fosroc Super6 Championship basement side Stirling Wolves
Vale of Leithen hoping for first win of season in Fife at weekend
Gala Fairydean Rovers up for cup at Kinnoull for second time in four months
Galashiels coach Dougie Anderson has gone from Borders amateur football ranks to mingling with Mourinho
Scott-trained Ben Asker, ridden by Billy Garrity, landed the win in the Scottish Sun Ladies Night On Saturday Handicap, which was the 3.18pm race staged at Ayr on Monday.
Ben Asker, the 3-1 second favourite, made all in the seven-furlong contest although was ridden a furlong out.
He took the victory by three-quarters of a length from runner-up One Last Hug, a 4-1 shot.
A further length back was Judgement Call, the 11-8 favourite.
Scott has been training horses since she was 16 years old. She then worked for Alistair Whillans and Rayson Nixon before applying for her own licence in 2015.
She said: “It was more of a progression than a single decision, but things were going very well with the point-to-pointers and Hunter chasers and it seemed the right time to take the plunge.”