Using this Github Script (https://gist.githubusercontent.com/Woznet/ca131d92a4ee73136b320e1d630ef70f/raw/db1a05661ff3660b906db86342885d42976767f9/Get-UserAgent.ps1) on Powershell 7.6.0-preview.4
Which actually the only working script seems to be Invoke-RestMethod -Uri 'ifconfig.me/ua' Seems to be Mozilla/5.0 (Windows NT 10.0; Microsoft Windows 10.0.26100; en-US) PowerShell/7.6.0