JS怎么获取python程序运行结果?

我在JS程序中调用了一个python程序,想将python运行的结果传递给到JS程序中,请问有什么办法吗?

var Python_filepath="file:///C:/project/auto_click.bat";

Runpython(Python_filepath);

Thread.Sleep(10000); 

MessageBox.Show('Python finished')


function Runpython(strPath)  

{     

   try     

   {     

    var objShell = new ActiveXObject("wscript.shell");     


    objShell.Run(strPath);    
    objShell = null;    
    // Thread.Sleep(10000); 

   }     

   catch(e)  

   {  
        RESULT.InterpretEqualResult("Deploy Check",["1111","run python file error"]);
            

   }     

} 

https://cloud.tencent.com/developer/information/python%E8%BF%90%E8%A1%8C%E7%BB%93%E6%9E%9C