$MailItem.windowstate(2) doesnt do a thing
$MailItem.windowstate = 2 gives an unexpected expression.
thnx anyway.

i have also been looking for a way to close outlook when the script is finished. but i only found how to close files..