我的C#程序应该通过打开执行powershell函数,如下所示:functionRunIE{$a=Get-ItemPropertyHKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion-nameProgramFilesDir$path=$a.ProgramFilesDir+"\InternetExplorer\iexplore.exe"&$path"www.heise.de"-extoffStart-Sleep6$shell=(New-Object-COMShell.Application)$ie=@($shell.Application.Win