To clarify:
There used to be a command line script encoding tool included with Windows NT, 2000 and XP called the Script Encoder (screnc.exe) which was not supported in Windows Vista and later. However the same functionality is provided in Windows Scripting Host from version 5.6 (XP) and later which includes scrrun.dll which exposes the Scripting Encoder Object (which you can see being used in my script above in this line set oEncoder = CreateObject("Scripting.Encoder"))
As far as screnc.exe is concerned, I believe that "not supported" in the case of Vista and later simply means "not included", "withdrawn", "retired", etc and I think the executable works on Vista and later (I have not tried it, and given there is no official way to download it, I don't expect to). There are 3rd party apps with the same name around which may or may not produce identically obfuscated code.