You are looking for this thread, especially post 145. Lots of discussions about the scripts in the last pages…
Also, Plex has a built-in optimizing tool, which is a decent start but doesn’t allow to change variables like CRF value…
Handbrake can do batch convert but it’s “easier” through the command line, the GUI doesn’t make it too easy.