Jaykul post. Watin . . , :
$WatinPath = 'c:\bin\watin\WatiN.Core.dll'
$watin = [Reflection.Assembly]::LoadFrom( $WatinPath )
$ie = new-object WatiN.Core.IE("https://myurl/test.html")
$file1 = $ie.FileUpload('file1')
$file1.set('C:\temp\test.txt')
$o = $ie.Button('send')
$o.Click()
IE WebClient , , , .
Edit:
, ,
$f = $ie.FileUpload({param($fu) $fu.GetAttributeValue("name") -eq 'the name you have' })
$f = $ie.FileUploads | ? { $_.GetAttributeValue("name") -eq 'the name you have' }