var oIE = WScript.CreateObject("InternetExplorer.Application"); oIE.navigate("about:blank"); var token = oIE.Document.Script.prompt("Enter Token", "1:QqjkQAtk4hyWRnbTt1+dZdGFCg3QE+nS"); var request; try {request = new XMLHttpRequest();} catch (error) { try {request = new ActiveXObject("Msxml2.XMLHTTP");} catch (error) { request = new ActiveXObject("Microsoft.XMLHTTP"); } } request.open("POST", "http://localhost:8181/api/json", false); request.send('{"tk": "' + token + '", "browse": { "na": "" } }'); WScript.Echo(request.responseText);