Usage
Get-Screenshot -Name 'notepad' -Path .\notepad.png
Get-Screenshot -Hwnd (Get-HWND -Name 'npad' | Select-Object -First 1)Parameters
-Name- Fuzzy app/process name or title.
-ProcessId- Exact PID.
-Hwnd- Exact HWND IntPtr.
-Path- PNG output path, defaults to screenshot.png.
Returns
PNG FileInfo object.
Note
Requires Microsoft WinApp CLI and a running interactive Windows desktop. Captures visible content, including overlays.