Logging to console or variable with powershell and .net assembly
                Hello,
using powershell and .net assembly, is it possible to write the SessionLog to console or a variable without writing it to a file first?
I could write the log with something like:
    
and then display it on console. Is there a way to write the output directly to console?
                
                
                
            
            
        using powershell and .net assembly, is it possible to write the SessionLog to console or a variable without writing it to a file first?
I could write the log with something like:
$session.SessionLogPath = ("c:\Sessionlog.log")