Why do I see a boolean value from EnumChildWindows when using this Powershell script?

A friend has a problem on his work PC. There are frequent network issues, after which he sees dozens of error popup windows from File Explorer. He wants a PowerShell script to close them all down without having to click each one individually. I solved the problem in Python but he must have a PowerShell… Read More Why do I see a boolean value from EnumChildWindows when using this Powershell script?