Here's a snippet from kholm (erik):

Code:

$oAutoIt = CreateObject("AutoItX.Control")
$oAutoIt.BlockInput("on")
Shell '%COMSPEC% Start /Wait Setup.exe -s'
$oAutoIt.BlockInput("off")