19.4. Windows Script Host Code Interoperability

PowerShell and .NET are really cool technologies, but it will take time until they take over the entire world. There is a lot of useful code out there written in VBScript, JScript, or other Windows Script Host-compatible languages. It would be very unwise, and maybe downright impossible, to throw all that code away and start rewriting everything in PowerShell. Besides existing code, the Web is full of examples automating various programs all written in VBScript or JScript. Sometimes, the examples are not short, and we cannot convert them to PowerShell on the fly. We need a usable way for our PowerShell code to interoperate with code written in JScript and VBScript.

Luckily, we have a good tool ...

Get Pro Windows PowerShell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.