Question is: How can I catch console output form other application.
For example
I used my lib in the script
(source of the scrpt
[Reflection.Assembly]::LoadFile("D:\BuildTools\ExecuteSQL\ExecuteSQL.dll")
[ExecuteSQL.Program]::Start("XXX\XXXXS#Project_1", "file:d:/1.sql")
)
And method "Start" writes to console some log data. But I can't read this data through powershell output. Is there some way to catch it?