I have a single PowerShell script that I want to let a user run by clicking a button. This script takes awhile to run, and I’d like to provide feedback to the user. I have seen other examples in the forums of people providing updates but only if the tasks are broken down into steps, so progress information can be updated (e.g. in a UDDynamic) between the steps.
Is there a way I could provide user feedback on the live script? Ideally I’d be able to capture what’s coming off one out the output streams and display it to the user. The Progress stream or the Success (Write-Output) stream would do.
Product: PowerShell Universal Version: 2.3.2