The Perth side beat Motherwell 1-0 in the Scottish Cup.