As mentioned, .bat files aren't the best way to scrape or automate websites. Depending on what you are trying to do, you might want to take a look at GreaseMonkey; a script engine extension for firefox.
Another popular choice is to use python, which has multiple libraries available to parse html/xml (e.g. beautifulsoup), in addition to easy web interfaces to request and receive.
And if the goal is just to deal with email, these email services can return XML. For example, in gmail, to check your current status, you can issue this URL:
Where, username and password is your actual values. Also note the https instead of http.