Probiere es mal so:
[autoit]
$7zip = "7z.exe "
$source = "c:\Tmp\ "
$dest = "c:\Temp\Test.7z "
$command = "a "
$switches = "-r -t7z -mx7"
ConsoleWrite($7zip & $command & $dest & $source & $switches & @CRLF)
$pid = RunWait(@ComSpec & " /k " & $7zip & $command & $dest & $source & $switches, @ScriptDir, @SW_MAXIMIZE)
Gruß,
UEZ