Using the working example to start a WebView2 instance in PowerShell here: WebView2 in PowerShell Winform GUI
I noticed it maintains cookies nicely between sessions, just like 'normal' Edge. In some scenario's however, manually getting and/or setting cookies could be useful. A specific scenario I'm looking at is using WebView2 session cookies to create a WebDAV connection.
I tried creating a CookieManager like so:
$cookieManager = [Microsoft.Web.WebView2.Core.CoreWebView2CookieManager]
But $cookieManager then doesn't expose any methods to set/get cookies.