in reply to Re: Getting message property from outlook mail item
in thread Getting message property from outlook mail item

According to MSDN, GetLast is a method of the Items collection itself so there should be no need to use in. Granted the OP is asking for trouble by calling the Items collection $Item but from what I can see there's no problem in the code.