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 photos: Lauderdale Limper Marc Wilkinson makes his mark at fundraising hill run near Selkirk
In pictures: Sun brings crowds out for Peebles Sevens
Peebles swimmer Gregor Swinney brings back bronze medal from Birmingham’s Commonwealth Games
Borders amateur footballers getting back on the ball this weekend
Hawick drawn against Jed-Forest in first round of rugby's Scottish Cup next year
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.”