To get output to a console from a form run from a console you can only use "Write-Host".
Uncaught exceptions and "Write-Verbose" will also go to the console.
Capture all Consule Output from Form and Out-File
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.