The Windows® Script Component package includes a Script Component Wizard that automates the process of creating a script component (.wsc) file.
Functions that the Wizard Performs
Creates the .wsc file and adds basic XML elements.
Prompts for and creates registration information.
Prompts for the type of interface handler you want the script component to use.
Prompts for properties you want to expose and creates the necessary elements in the scripting language you specify.
Prompts for methods you want to expose and creates the necessary elements in the scripting language you specify.
Prompts for events that the script component can fire and creates the skeleton event elements.
You can download and install the Script Component Wizard from http://msdn.microsoft.com/downloads. In the left pane, expand the Web Development node. Expand the Windows Script node and select Component Wizard.
The wizard creates a skeleton script component with information you provide, and writes it out as a .wsc file. Edit the .wsc file and add your script to create the script component's functionality.