How to access the output of a PowerShell script? How to access the output of a PowerShell script? powershell powershell

How to access the output of a PowerShell script?


You could create a C++/CLI wrapper around System.Management.Automation.* and expose a DLL entry point like string ExecutePowerShellScript(string script). Then you should have no problem invoking that DLL entry point from Delphi.