CmdID / PowerShell / Cmdlets / Set
Set-TeamPicture
Update the team picture. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 2 parameters Its page in the reference
Parameters
-GroupIdGroupId of the team-ImagePathFile path and image ( .png, .gif, .jpg, or .jpeg)