Flow is far from perfect. And when you need the group-id to run scripts to make changes to Teams or Groups there is no action to do so. With a little knowledge of how to set up an Azure application and how to use graph inside a flow you will be able to get the group-id with a short request.