TV Shows Optimize

What kind of script?
If you had any scripts, then these were made by a user.

What are you after? What do you want to do?
There is a lot you can do even without external scripts, just by using the regular filter system.
You can set up optimization jobs just like ‘smart’ playlists in Plex.
(Same goes for Sync jobs, btw.)