notes/Basic Web form filling in PowerShell and IE-AL2mGjYB.sh
<#
Basic Web form filling in PowerShell and IE
you need to start power shell like this:
PowerShell -ExecutionPolicy Bypass <script.ps1>
#>
$Browser = New-Object -COM "InternetExplorer.Application"
$URL = "http://filmsbykris.com/v6/index.php"
$Browser.visible = $true
$Browser.Navigate($URL)
While ($Browser.ReadyState -ne 4) { Start-Sleep -Seconds 1 }
$Inputs = $Browser.Document.getElementsByTagName("input")
($Inputs |select -first 1).value = "metal"
syntax highlighted by Code2HTML, v. 0.9.1