You can use the following command to export data to KML and KMZ formats.
Command
Description
ExportKML
Exports data to the KML (uncompressed) format