Como posso ler o Gmail usando o PowerShell
Você pode tentar o Gmail.ps :
A PowerShell module for managing your Gmail, with all the tools you'll need. Search, read and send emails, archive, mark as read/unread, delete emails, and manage labels
Features
- Read emails
- Search emails
- (Update) emails: label, archive, delete, mark as read/unread/spam, star
- Manage labels
- Move between labels/mailboxes
- Automatic authentication, using the Windows Credential Manager
Fonte Gmail.ps
Note que eu não testei isso e não tenho nenhuma conexão (trocadilho intencional) com o software.