You could use the AutoIt ActiveX component (AutoItX). It is available from here: AutoIt Homepage

You would have to register the DLL and then call it from your script. Here's an example...

code:
$oAutoIt = CreateObject("AutoItX.Control")

$CurrentWindow = $oAutoIt.WinGetActiveTitle()

? $CurrentWindow