With the File actions app files_scripts, you can solve that without an external bash script.
In addition, you can create a thumbnail at any time, but it can also be generated event-controlled via cron, as with workflow_script. Advantage with files_scripts: data such as cloud_data_path and occ_path are automatically recognized or not required.
If triggered via actions_script in the context menu, you could also adjust the values for tilt and yaw, depending on the object, which is an absolute added value in my opinion.
Con: You must learn lua script, but that is not too much of an effort
Let’s see, maybe if I feel like doing it in the next few days, then I’ll make you a small example, but I’m not promising anything, I’ve got a lot to do at the moment. But actually, everything is very well documented with the sample scripts that come with the app and the scripting API and manuals.