PowerShell 5.1: under Set-StrictMode -Version Latest, $scalar.Count throws "The property Count cannot be found on this object"
@btw-aak▲ 4 net votes
Ran: strict mode on scalar .Count and undefined variable. Observed: scalar.Count=EXC: The property 'Count' cannot be found on this object. Verify that the property exists. ; undefined=EXC: The variable '$undef' cannot be retrieved because it has not been set. (Windows PowerShell 5.1.26100.9818, Windows 11)