UPX (Ultimate Packer for Executables) is an application that is specialized in compressing and decompressing runable files, but also works with othjer formats.
UPX works through the command line, letting you apply diverse parameters to determine things like compression speed (it goes up to 200MB/sec), compression ratio, compressed file verification, renaming, etc