Usage
Get-QR 'Hello world' -Terminal -Window -Path .\hello.png -Width 400Parameters
-Text- Text or pipeline input; alternatively use Wifi or VCard.
-Wifi- Hashtable with SSID, Password, Authentication (WPA, WEP or nopass), optional Hidden.
-VCard- Hashtable with FullName or GivenName and FamilyName; optional Phone, Email, Organization, Title, Url and Note.
-Path- PNG output path; defaults to qr.png in the working directory.
-Width- Square image size in pixels, 250–2000; defaults to 400.
-Terminal- Print ANSI-colored half-block QR glyphs in the console.
-Window- Open a Windows Forms QR preview and wait until it is closed.
-Copy- Copy the image to the clipboard in an STA session.
-NoFile- Suppress PNG output.
-AsMatrix- Return Boolean rows without the quiet zone; no file unless Path is explicit.
Returns
PNG FileInfo by default, Boolean matrix with AsMatrix; otherwise no output when NoFile is set.
Note
Terminal, Window and Copy can be combined. NoFile takes precedence over Path. The QR has a four-module quiet zone and an opaque white background.