Romex exiting junction box just below 8 feet
Easy.  Cut up bits of 1x4 so you can fit them on the wall around the cable, so the cable goes between them.  Then cap it off with another scrap of 1x4.  The one-by dimension is ample to provide clearance for the cable.