В чем разница между $ie.Navigate("URL")
и $ie.Navigate2("URL")
?
Get-Member говорит:
Navigate Method void Navigate (string, Variant, Variant, Variant, Variant)
Navigate2 Method void Navigate2 (Variant, Variant, Variant, Variant, Variant)
Пример кода:
$ie = New-Object -ComObject InternetExplorer.Application
$ie.visible = $true
$ie.Navigate("www.stackoverflow.com")
#or
$ie.Navigate2("www.stackoverflow.com")