I have a program that is calling a powershell script from an event handler. The powershell script is provided by a third party, and I do not have any control over it.
The powershell script uses the powershell progress bar. I need to read the progress of the powershell script, however because of the progress bar the System.Management.Automation namespaces do not consider this as output. Is it possible to read the value of the powershell progress bar from an external program?
Process process = new Process(); process.StartInfo.FileName = "powershell.exe"; process.StartInfo.Arguments = String.Format("-noexit -file \"{0}\"", scriptFilePath); process.Start();
powershell.exe, useSystem.Management.Automationinstead