Bash to export to kmz


I calculated the coherence of images from Sentinel1 and then terrain-corrected them. Now I want to export my images to .kmz but I faced two issues :

-First of all I would like to do batch processing or a bash to export to .kmz but I can’t find this format in “write”. (The export is not a problem if I do it by hand loading the image in SNAP)

-In addition I would like all my images to have the same colorbar (min = 0, max = 1 and mean = 0.5 for example) without changing the parameters manually.

Thank you in advance

The NASA Ocean Color Forum has a thread on creating kmz images.
Python is widely used to automate creation of kmz images, so you might consider using snappy.