This was solved by following this guide: https://laurakokkarinen.com/calling-microsoft-graph-from-microsoft-flow-and-other-daemon-apps-with-delegated-permissions/
Only issue i have left is if you make the SharePoint site for the Team to be read only once it gets archived then i can get it back to be edit if i restore the team. I can do it manually but not on Flow. So if you use shouldSetSpoSiteReadOnlyForMembers": true then when team is archived the sharepoint site is set to read only for users.
The only thing you need is to call Graph using HTTP - Post
You can grab your Team ID and store it anywhere you like and use that in your flow when calling graph.
I can post the full flow if you still need it.
This is for archiving teams, so when i user clicks archive teams in my sharepoint list it will start an approval flow, if approved the Team gets archived and the site gets read only for users. I then have another flow to Unarchive the team, but im not able to get it to set the rights back to edit for members on the sharepoint site.