我正在尝试使用bat文件检查网址状态
<# : batch portion
@echo off & setlocal
set "URL=http://l:8080/LevelTwoChargerStartTransaction?chgStationRef=T0001&rfId=0.1.0.255.0.0.0.0."
powershell -noprofile "iex (${%~f0} | out-string)"
goto :EOF
: end batch / begin PowerShell hybrid chimera #>
$request = [Net.WebRequest]::Create($env:URL)
echo $request
$response = $request.GetResponse()
echo $response
$stream = $response.GetResponseStream()
echo $stream
$reader = new-object IO.StreamReader($stream)
echo $reader
[void]$reader.ReadToEnd()
我需要获取URL的状态如何使用批处理文件或其他任何方式执行此操作?