Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Please use below script for auto login to teams.
$username = "<username>"
$passwd = "<password>"
$secpasswd = ConvertTo-SecureString -String $passwd -AsPlainText -Force
$cred = New-Object Management.Automation.PSCredential ($username, $secpasswd)
Connect-MicrosoftTeams -Credential $cred
For meeting policy change alerts you can create Alert in audit logs. This is available in azure security and compliance. you can choose recipient email address.