Captain Andy Crosby put United ahead when he slotted home at the far post following a free-kick.
Luke Maitland levelled for the visitors after the break after Iron goalkeeper could only parry a shot.
But United got a late winner from the penalty spot, when Peter Beagrie converted after Cleveland Taylor was felled in the area.