I found out that the vbs file works just fine if I use it directly by clicking it with the mouse but it was not working if I assiged it to a free key on my keyboard (Using the IntelliType Pro) software. I think it's because the free keys I have on my keyboard can be programmed to work only with executable files i.e. launch executables.
In brief, it's my keyboard limitation and/or Microsoft's IntelliType Pro limitation and not the script.
If it's possible to package that vbs file in an exe file, that would be great

I have a hibernate.exe file that I downloaded long time ago and it works like a charm after dedicating a key for it on my keyboard.
P.S. For people to know what exactly I'm talking about, I'm using a keyboard called "Microsoft Digital Media keyboard 3000" which has 5 buttons labelled from 1 to 5 for me to program as I want using the "IntelliType Pro" Software.