Powershell Form textbox

Is there a way to grab the value from a Textbox in Powershell without closing the form to get the value. For instance I start a form and want to enter information into a textbox but not have to close the form box to get the value. I'm trying to create textbox for entering password and username and the values are available to pass to PSCredentials. I have not been able to achieve this yet, so if you could assist me with a solution, workaround, or the best way to get the result I would appreciate it.
crp0499CEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daryl BamforthTechnical ExpertCommented:
Are you unable to just trigger '$usercred = get-credential'?

It may not be within the form you are creating, but should pop up a standard authentication box, which is then handled by windows, and passes back credentials in an encrypted format.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.