After to install the 7z in our windows workstation/server then we need to create our evironment variables to call the function from the cmd [1].
Then the command below will guide you to zip a simple file:
7z a -r [myzip] [example.txt]
- [myzip] - the zip name file
- [example.txt] file used for the example
To zip a folder
7z a [myzip] [folder]
Docu based thx to the information seen from: [1] GlobalEnviroment