How are you deploying this? SCCM? If so, Since it’s Teams (which unfortunately resides in the user’s profile) you could call it as a per user deployment instead of a per-system.
If you want to run as it system, you’ll need to enumerate all profiles. This post has a good example that you should be able to leverage.
https://discourse.psappdeploytoolkit.com/t/copy-file-to-all-users-currently-logged-in-and-for-all-future-users/585/2