If I do this
it indeed changes to the new profile but opens a new window. But I want it to change the profile of the current tab and not pop up a new window.
If I go through GUI, as suggested in gnome documentation
Click on the tab of the tabbed terminal for which you want to change the profile.
Choose Terminal ▸ Change Profile ▸ profilename.
it works perfectly fine.
Just wondering how come there is no command line equivalent for this.