A script writer will do that or maybe a screen writer, but I think screenwriters usually adapt novels into scripts for movies or TV shows, not for plays.
And so I got really frustrated with that, because the way playwrights make a living on playwriting is not just on the first play, but on that play being produced again and again.