ar-win-2.attackrange.local Administrator C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe cmd.exe "C:\Windows\system32\cmd.exe" /c "py -3 -m pip --version &gt;nul 2&gt;&amp;1 &amp;&amp; exit /b %errorlevel%"