VBScript warning message: How can I avoid receiving warning messages from SAP GUI when a VBScript accesses the SAP system?
You can deactivate the warning message in

SAP GUI options -> "Accessibility & scripting" -> "Scripting" ->

"Notify when a script attaches to SAP GUI"

and

"Notify when a script opens a connection"