Batch converting 1000’s of .fla files to .png in Adobe Animate

I need to convert thousands of assets from .fla to .png the bulk of which are not animated (id like to do the animated ones as png spritesheets if possible). Is there any way to automate this process in Adobe Animate so I don’t have to do this manually?

I have searched a ton but the closest I’ve found is a code snippet on the adobe help website from 2017 for doing a similar thing with SVGs but I’m not sure how to implement it or modify this as I don’t know javascript.