Invoke Power shell Throw : Unable to cast object of type 'Microsoft.Exchange.WebServices.Data.GetItemResponse' to type 'System.String'

I am trying to grab emails from Exchange using powershell in UI Path. When trying to return the items, I get the following error:

Throw : Unable to cast object of type ‘Microsoft.Exchange.WebServices.Data.GetItemResponse’ to type ‘System.String’.

Even when I change the TypeArgument in UI Path. Currently I am using the Invoke power shell activity but I get the same issues using the RunPowershellScript activity.

Layout of this question including screenshots and my powershell code can be seen here.

Thank you!!!

I figured it out!!! Go check out stack overflow. You can use this to get email from Exchange using powershell and it allows you to pass through filters.