Hello Asitabha,
you can find examples how to pass arguments to a VBScript, in the context of SAP, in SAP GUI Scripting Development Scenarios and in How to check SAP Network Speed. You can find an example how to detect connection and session number, for a seamless SAP GUI Scripting integration. And also you have the possiblity to use a lot of standard window attributes.
Best regards
Stefan