If you want to know how to compress files in script(PowerShell, VBScript ...)and implemented with only windows builtin function, you may find "operate ZIP folder provided Windows Shell object"
But it is not stable on production server.
I implemented file compression batch with powerShell, Windows.Shell process is crashed and powershell.exe process is dead.
Because of killing PowerShell.exe, error handl block( try - Catch ) is not work.
I suppose to use CAB compresion.
See this article.