javascript – Connecting Google Sheets / GMail script with several Google Accounts


I have written a Google Sheets script which allows creating GMail drafts based on data in a Google Sheet. This currently only created drafts for the user who is currently logged in. Is it possible to authenticate the script with several accounts and create some of the drafts in different Google accounts each, depending on a variable defined in the Google Sheet?

How could I do that?
Thanks for your help!