I've been banging my head on this for a bit, and Google gives me just enough to frustrate me without actually showing me a solution that works, so here goes:
I've built a WPF/Xaml based GUI for my Office 365 distribution group creation script to give to my techs; it was a lot of fun, I learned a lot, and it works great. The last part would change the output from showing up in the PowerShell window that they launched the script in to showing the output in a text box field on the form itself. Here's where the problem starts: the text box shows the output fine, but it doesn't show any output until all execution is stopped. This is a problem because there are times that the form will appear to freeze while it's doing work, and I want it to show output so the user can see that progress is happening, and where the program is at.
I've learned...