this is one of our other projects that is a sort of python library script called cobrabatch that can convert a python file to a batch file and uses a py file as the main and a. batch file as the part that actually converts python files to .bat files
cobrascripts/cobrabatch_library: a custom python library type script used for converting py files to batch files possible - Codeberg.org