Does a spell attack trigger extra damage from Hexblade’s Curse?

If a target is inflicted with Hexblade’s Curse, would hitting that target using spell attack (for example Scorching Ray) trigger the additional damage? and if so, would it affect each “ray” with additional damage?