cmd.exe "cmd.exe" /c "path=%%path%%;"C:\Program Files (x86)\winzip" &amp; mkdir .\tmp\victim-files &amp; cd .\tmp\victim-files &amp; echo "This file will be encrypted" &gt; .\encrypted_file.txt &amp; "%%ProgramFiles%%\WinZip\winzip64.exe" -min -a -s"hello" archive.zip * &amp; dir" powershell.exe ar-win-dc.attackrange.local