In this video I demonstrate a practical use case for using sendkeys in a PowerShell script. You can use sendkeys to automatically click a button, or confirm a prompt for instance.
*How to send keyboard input with PowerShell to any open window or application
*how to send keystrokes programmatically by windows title
*add-type -AssemblyName microsoft.VisualBasic
*add-type -AssemblyName System.Windows.Forms
*[Microsoft.VisualBasic.Interaction]::AppActivate()
*[System.Windows.Forms.SendKeys]::SendWait()
*powershell
*learn powershell
*automation
*learn automation
*windows
*windows powershell
*automatic installations
*send keys from powershell to any application or window
Code: https://github.com/mwhooo/misc/tree/main/videos/sendkeys