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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.