I normally get a list of all open windows. If I open Internet Explorer and then navigate to a URL, the IE window shows in this list. When I open a URL bookmark from my desktop, it does not show the window when I run
. Does anyone have any idea why this is happening?
Unfortunately, Shell.Application is really old, deprecated, and not updated any longer. And PowerShell was never really intended for this kind of GUI control – which is why you're kind of forced to use that old COM object. But it is what it is; you've probably just run up against a situation where the COM object hasn't been updated to match the way Windows currently works (that COM object dates back to Windows 95).