Dim objInstances, objIE, strURL
strURL = "
Set objInstances = CreateObject("Shell.Application").windows
If objInstances.Count > 0 Then ' To make sure we have IE instance open.
For Each objIE In objInstances
sName = UCASE(objIE.FullName)
If Right(sName, 12) = "IEXPLORE.EXE" Then ' Searching for internet explorer
objIE.Navigate strURL ' Navigate to intended URL
wscript.echo "No explorer windows are open."
Sometimes there are simple solutions to complex problems, isn't it ?