Editing using a Variable in Existing Profile of Terminal Session

Sorry I misunderstood your query
I think it’s a connection wizard that helps us to connect to the terminal session
In that case we can pass connection string that we want as required with the property connection string

If I m right I have seen this sort of post already
This might help you

Cheers @Balamareeswaran_Muru