cmd.exe "cmd.exe" /c "mkdir C:\AtomicRedTeam\atomics\T1560.001\victim-files &amp; cd C:\AtomicRedTeam\atomics\T1560.001\victim-files &amp; echo "This file will be encrypted" &gt; .\encrypted_file.txt &amp; "%%ProgramFiles%%\7-zip\7z.exe" u archive.7z *txt -pblue &amp; dir" powershell.exe ar-win-dc.attackrange.local