I try to make query for this web page: Overpass API Query Form
and i wrote this Code:
$test = Invoke-WebRequest -Uri “Overpass API Query Form”
$dbForm = $test.Forms[0]
$dbForm
$dbForm.Fields[‘’] = “[bbox:50.662127,5.9748990,50.857233,6.218150];node [natural = tree];out meta;”
$dbForm.Fields
Invoke-WebRequest -Uri (“http://www.overpass-api.de/” -$dbForm.Action) -Method Post -Body $dbForm.Fields
But it does not work well
can one correct it please for me.