[System.Net.WebRequest]::Create('http://127.0.0.1:38930/api/close').GetResponse()
通过bat执行
PowerShell -Command "& {[System.Net.WebRequest]::Create('http://127.0.0.1:38930/api/close').GetResponse()}"
参考文章:
https://stackoom.com/question/3aX0O
https://qa.1r1g.com/sf/ask/975465291/
https://blog.51cto.com/u_11508007/3594438?abTest=51cto