Powershell &引用;“未找到方法”;调用GetElementsbyClassName时出错

Powershell &引用;“未找到方法”;调用GetElementsbyClassName时出错,powershell,automation,internet-explorer-11,powershell-4.0,powershell-ise,Powershell,Automation,Internet Explorer 11,Powershell 4.0,Powershell Ise,它说:“我创建了一个PowerShell自动化脚本,当我的朋友运行它时,我把它交给了他。” Method invocation failed because [mshtml.HTMLBodyClass] does not contain a method named 'getElementsByClassName'. At C:\Users\עמית\Documents\asaf.ps1:22 char:3 + $a=$docs.body.getElementsByClassName("Fa

它说:“我创建了一个PowerShell自动化脚本,当我的朋友运行它时,我把它交给了他。”

Method invocation failed because [mshtml.HTMLBodyClass] does not contain a method named 'getElementsByClassName'. At C:\Users\עמית\Documents\asaf.ps1:22 char:3 + $a=$docs.body.getElementsByClassName("FadeOut-Scroll") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound 方法调用失败,因为[mshtml.HTMLBodyClass]不包含方法 名为“getElementsByClassName”。 在C:\Users\עמית\Documents\asaf.ps1:22 char:3 +$a=$docs.body.getElementsByClassName(“淡出滚动”) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +CategoryInfo:InvalidOperation:(:)[],运行时异常 +FullyQualifiedErrorId:MethodNotFound 为什么会这样

我们都有IE11、.NET4.5和Visual studio,但我有那个功能,他没有

在他的电脑中,IE控制台具有以下功能:

但PowerShell没有:


如何更新PowerShell?

经过一段时间后发现:


缺少的需求

。这是一个只有微软才能回答的问题。