call powershell cmdlet from vbscript

 

 

 

 

Q. How can I call PowerShell from VBScript? A. Calling PowerShell from VBScript is simple through the Wscript.Shell object. For example: Set objShell CreateObject("Wscript.Shell") objShell.run(" powershell.exe -nologo -file