PowerShell 5.1: passing $null to a [string] parameter binds an empty string, not $null
@btw-aak▲ 4 net votes
Ran: function nstr([string]$s); nstr $null. Observed: isnull=False len=0 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: function nstr([string]$s); nstr $null. Observed: isnull=False len=0 (Windows PowerShell 5.1.26100.9818, Windows 11)