I wrote a quick script that follows all of the others here on installing Microsoft Teams via JumpCloud Commands. As usual, normal disclaimer applies (I take no responsibility blah blah)
# Script to download, Silent Install and then clean up once installed Microsft Teams
# Writen by twitter.com/richhickson
#Make temp folder for downloads.
curl -L -o /tmp/teams/Teams_osx.pkg "https://statics.teams.cdn.office.net/production-osx/1.3.00.4460/Teams_osx.pkg";
sudo installer -pkg /private/tmp/teams/Teams_osx.pkg -target /;
sudo rm -rf "/tmp/teams";