It's called "channel run" and you can get it by the foot from some resto places.

Which vehicle is it for? Might be easier to get a correct fitting, pre-cut and formed piece(s) from the get-go.