Open notepad or any other third party editor like Notepad++.
Write any VBScript code suppose
Wscript.Echo "Hello"
Wscript.Quit 0
Save the file with .vbs extension suppose hello.vbs.
You can then run that VBScript file from command prompt.
Reference
http://testingfreak.com/run-vb-script-code-written-on-notepad-without-additional-software-windows/