Scratches, thankfully, is very easy to treat- do nothing! But, in all seriousness, if your horse develops scratches, it is not a serious condition.
Simply make sure that the fur around the scratches is trimmed away, make sure the horse isn’t exposed to the moist conditions it was when the scratches developed, and keep an eye on your horse’s recovery.