You may want to check out AviSynth [1]. It has been quite a few years since I last used it, but it is able to do things like moving text with a script. It was very fun to work with, particularly being able to copy a script from a previous project and modify it for a new project. When I last used it, I used a text editor called AvsPmod [2] that had some nice integrations.
This guide is a great introduction and I refer back to it from time to time even after using Bash for ~15 years:
https://mywiki.wooledge.org/BashGuide/