[S.M.A.Internal.AutomationNull]::Value is treated like a collection when used with -match, -notmatch, -like, -notlike · Issue #3866 · PowerShell/PowerShell

Steps to reproduce Set-Content -Value $null -Path .\zero.txt -NoNewline -Encoding Ascii (get-item .\zero.txt).Length -eq 0 # returns $true $content = gc .\zero.txt -Raw -Encoding Ascii $content -eq...