无法find接受参数“WScript.CreateObject”的位置参数
试图执行: Set objWshShell = CreateObject("WScript.Shell") 出错: [![PS C:\Windows\system32> Set objWshShell = WScript.CreateObject("WScript.Shell") Set-Variable : A positional parameter cannot be found that accepts argument 'WScript.CreateObject'. At line:1 char:1 + Set objWshShell = WScript.CreateObject("WScript.Shell") + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) \[Set-Variable\], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetVaria bleCommand][1]][1] 然而这工作: $WSH = New-Object -Com WScript.Shell $WSH.Run("explorer.exe""") 我试图运行这需要壳和上下文: Set […]