How can I access a GUI's textbox value using Powershell?

Options
HaniaAnoor
HaniaAnoor Posts: 1
edited April 2022 in Deployment & Integrations

I am writing a powershell script that installs and runs teamviewer then returns the ID and Password to powershell so they can be emailed to the Administrator. I am able to get the ID from registry but the password needs to be retrieved from the actual GUI. I'm not sure of the best method for doing this as I'm fairly new to working with windows forms in powershell. Any help would be appreciated as I aspire to learn more Powershell Automation.