I'm writing a VB Script code, as part of cimplicity object. The code basically need to open IE with a specific URL and autologin to the webpage. The login is a "windows security" popup window. Can i log in to it pragmatically?

Here is a part of my code:
On Error GoTo ERR_TRP
Dim IE
Dim UID As CimObjectVariable
Dim PWD As CimObjectVariable
Dim URL As CimObjectVariable
Dim sUID As String
Dim sPWD As String
Dim sURL As String
Set UID = CimGetScriptOwner().GetVariable("USER")
Set PWD = CimGetScriptOwner().GetVariable("PWD")
Set URL = CimGetScriptOwner().GetVariable("IP")
sUID = UID.Value
sPWD = PWD.Value
sURL = URL.Value
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.navigate sURL
Sleep(1000)
Err_Trp:
x = MSGBOX ("Cannot open the camera Please check User-Password-IP", 0 , "Eror")
Dim ... Aswon't work in VBS, all variables in VBS has Variant type. Just useDimwithoutAs. Could you share the URL which gives you such popup window (or any similar)?