If you're looking for a script, I don't know of one for Illustrator, but there are some built-in nesting options in various CAD software, like Rhino, Mastercam, etc.
Manually resizing and rotating text in AI doesn't take much time, and this seems like a bit of a one-off, so may not be worth...