It appears that PowerShell does not recognize the \\?\ notation. Why not?
=== cmd.exe
C:>ver
Microsoft Windows [Version 10.0.17763.1935]
C:>DIR "\\?\C:\Users\*"
Volume in drive \\?\C: is Windows
Volume Serial Number is 1C66-809A
Directory of \\?\C:\Users
2021-08-04 12:27 <DIR> .
2021-08-04 12:27 <DIR> ..
2019-11-25 16:22 <DIR> Administrator
... 0 File(s) 0 bytes
28 Dir(s) 81,919,647,744 bytes free
=== Windows powershell.exe
PS C:\Users> $PSVersionTable.PSVersion.ToString()
5.1.17763.1852
PS C:\Users> Get-ChildItem -Path "\\?\C:\Users\*"
Directory: \\?\C:\Users
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2019-11-25 15:22 Administrator
...
PS C:\Users>
=== PowerShell Core pwsh.exe
PS C:\Users> $PSVersionTable.PSVersion.ToString()
7.1.4
PS C:\Users> Get-ChildItem -Path "\\?\C:\Users\*"
PS C:\Users>
Get-ChildItem -LiteralPath "\\?\C:\Users\"works so probably something related to the wildcard matching in-PathGet-ChildItem -LiteralPath "\\?\C:\Users\"doesn't actually work: while it does produce output, it mistakenly reports the root directory's content (verified on PowerShell Core 7.2.0-preview.8).