ar-win-2.attackrange.local Administrator C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe cmd.exe C:\Windows\System32\cmd.exe /c "for /L %a in (1,1,10) do @(del %temp%\SAMvss%a &gt;nul 2&gt;&amp;1)"