Howdy! I've written a macro that allows you to put modular, reusable code in separate files and call that code with a namespaced function call syntax. For instance, if you have a label named 'copy_log_files' in util.ttl you can call that code from another file using this syntax:
The code runs on Tera Term 4.66 or higher and is released under the terms of the MIT license. The code and documentation are available at:https://github.com/kurtmckee/teraterm-subroutines
If you encounter any issues, please don't hesitate to create a bug report or submit a pull request!