using powershell code i would like to open the application and click on any option. like open Notepad++ and click on file -->new
This is independent script which run in powershell console
i tried to grab the Notepad++ window handle like this
$WindowHandle = Get-Process | Where-Object { $_.MainWindowTitle -Match $WindowTitle } | Select-Object -ExpandProperty MainWindowHandle
but i am not able to click on it.
to open Notepad++
start-process "C:\Program Files\Notepad++\notepad++.exe"
to grab the window
$WindowHandle = Get-Process | Where-Object { $_.MainWindowTitle -Match $WindowTitle } | Select-Object -ExpandProperty MainWindowHandle
any code snippet which can help me in grabbing the control on notepad++ and click on options or buttons.

