You need to save it with the .vbs extension and then run it. Also if it errors check what line and column it specifies.