This article will give you an idea about how to update the SharePoint Online site logo with the use of PnP (Patterns & Practices) PowerShell.

SharePoint-2013-Hosting

 

Pre-Requisite

Windows PowerShell
PnP SharePoint Online Management Module

Include module using following PowerShell command,

Final Code