Output from a powershell script displayed in Windows Form?
<p>My goal:</p>
<p>Write a quick gui program that lets you select a date from a date picker, sends that date as a command line argument to a powershell script, and displays the output of that script. I would prefer the output to be in real time, not redirected to a file then displayed.</p>
<p>Also, I have been writing the gui portion in powershell aswell using winforms, but I can switch to C# or something else.</p>
<p>I tried searching, but I couldn't find much on running a PS script within a winForm.</p>
<p>Thanks!
-Brodie</p>
<hr />
<h3>EDIT 1</h3>
<p>I apologize, I guess the question is a bit broad. I'll try to describe in more detail what I want -</p>
<p>I want to have a windows form that contains a date picker and other options (Stuff I can do myself). Then, when the RUN button is pressed, the area in the bottom (Outlined in RED below) will display the OUTPUT of a totally seperate Powershell script.</p>
<p><img src="https://i.stack.imgur.com/F8Yau.png" alt="example win form" /></p>
<p>Please let me know if I can clarify better.</p>