Compress a folder via a command line while persisting its icon
The command-line zip command doesn't seem to be able to hand certain aspects of macOS, including icons, but the more traditional unix tar utility can. You can make use of this by replacing your command with the following (this will also compress the folder using gzip):

tar -czf Folder.tar.gz Folder