This is how you add a password to any file(s) using 7Zip.
Can be used in a script or via the command line.
This would add all Microsoft Word docs to an archive named TestArchive.z with the password of SECRET
7z.exe a TestArchive.7z *.docx -pSECRET