Consider this other replacement cord
with same pin shaped end.
Generic Power Brush Cord for many electric power heads. It has two wires and is 56 inches long. It can be carefully cut to a shorter length. Take the time to note the shape of the cord end. It has two brass pins 3/8" apart, plastic beveled edges, and a flare.