How to code a Chrome extension which searched for a text on webpage and if found, starts a batch file?

I am trying to write a Chrome extension which searches for a text, say “Plastic”, on a webpage. If found, it should start a batch file in the computer. However, if in place of “Plastic”, if finds say “Paper”, it should keep refreshing the webpage after every 5 mins, until “Plastic” or some exit word is found.

So far, I have a manifest file, a content.js and a background file which is able to search and replace a string of text on a webpage, but I am not sure how to refresh a webpage and start a batch file from this extension.

Make XML HTTP request to Chrome Extension from vbscript

Here is the script, I need it to return the DOM of the popup html of my chrome extension:

URL="chrome-extension://jclgkomglckpklainiafinmjchonokdl/popup.html"
Set WshShell = WScript.CreateObject("WScript.Shell")
Set http = CreateObject("Microsoft.XmlHttp")

On Error Resume Next
http.open "GET", URL, False
http.send ""
If err.Number = 0 Then
    Wscript.Echo http.responseText
Else
    Wscript.Echo "error " & Err.Number & ": " & Err.Description
End If
set WshShell = Nothing
Set http = Nothing

It works for sites that have http:// before it, but won’t work for the link above. Putting http:// before said link doesn’t work either. Is there any way that this could work with the chrome-extension? If not, are there any other suggestions as to how this could be done?

PS the vbscript is part of a batch file so I can just double click to set the extension and its webpages up.