Windows does not provide a simple built in way of doing this, so we need to download an external tool such as the popuplar 7zip: https://www.7-zip.org/
Now we can run from a command line - replace foldername, archive and password placeholders :
"c:\Program Files\7-Zip\7z.exe" a -p"[password]" [archive].zip [foldername]
Tags
command line