There’s a thing called blocks, and the device you are looking for, the notification device, allows you to add blocks. There should be a block called Triggering Team's Name that allows you to extract the name of a team to put into a notification.
Also, welcome to the community! Please be sure to do the tutorial, and read the rules:
s.rules
s.faq
s.orules