I have a PowerShell file, say TestForm.ps1 and a PrimalForm file, UserForm.ps1, with 3 textboxes; as in the following code:
$FormPath = $PSScriptRoot + "\UserForm.ps1"
$Result = & $FormPath
I don't know, how to read the text entered in the 3 textboxes of the UserForm.ps1 into my calling TestForm.ps1.
Please help.