Working with Lotus Notes com-object

Hello. I would like to ask how could I work with LN using com-object via PowerShell.

Right now I came up with:

$LotusSession = New-Object -ComObject Lotus.NotesSession

$LotusSession.Initialize(“mypass”)

$LotusDatabase = $LotusSession.GetDatabase(“srv”,“mail\my.nsf”)

Write-Host -ForegroundColor Green "Database open : " $LotusDatabase.Title

$LotusFolder = $LotusDatabase.GetView(‘folder\subfolder\subsubfolder’)

$NotesDate = $LotusSession.CreateDateTime(“2015-01-01”)$Query = “@Contains( Subject; ““mytest”” )”

$LotusDocuments = $LotusDatabase.Search($Query, $NotesDate, 0)

Thing is: I would like to move items between folders (views) and also mark them as read/unread. I couldn’t find any methods in com-object those do this.

Subject: putInFolder

You can use putinfolder and removefromfolder to do the equivalent of moving documents between folders, not Views, views contain documents that match the selection criteria, you do not move documents in and out of views.

There aren’t any COM methods for controlling unread/read marks.