Need to run Romex down along support beam into new wall below beam
You need to protect the wire when it comes out of the stud bay.
What I would do would be to drill a hole straight up in the center of the 2x4 go up and over to the joist bay.
Other options would be to notch the top plate and add a nail plate or sleeve the section with conduit.
To me going up through the 2x4 plate of that wall would be the easiest and look the most professional in the long run.  Since we can’t see the beam I may suggest drilling centered and up 1-1/2” into the beam (1-1/2 past the 2x4) then out to the side this will keep the wire out of the nail zone, it looks like you have more room on the left, that or notch the 2x4 and put a nail plate over the wire.