Use PowerShell in your VBScript code

 Are you a VBScript user looking to leverage some of PowerShell’s cool new capabilities – but aren’t ready to move entirely to PowerShell? Perhaps you have an older VBScript that needs some minor new functionality that you just KNOW would be easier in PowerShell – but you don’t have time to convert the entire script?

If you have PrimalScript 2007’s latest service release (build 566), then you’ve got "PrimalToys," a set of add-in COM components (look in PrimalScript’s installation folder to find the PrimalToys installer). And PrimalToys now includes "ActivePoSH," a new VBScript-accessible COM object that allows you to execute PowerShell code and get the results back as text – which can then be used elsewhere in your VBScript.

This is one of the many new items available in Build 566 of PrimalScript 2007 – check out our change log for more!