I have a windows form into which im updating a text from powershell, just like a scripts progress status, im trying to auto move to a new line into the textbox but im unable to do that
I tried [System.Environment]::NewLine but it did not work
$nl = [System.Environment]::NewLine
$i++
$textbox1.Text = "PS $i> Running Script"
$textbox1.AppendText($nl)

Could Any of you guys helpe me out on how to move the cursor automatically to the next line
Maybe Show
PS2> Script Started
I found this solution