Hi @Kothai Ramanathan , welcome to Microsoft Q&A forum.
We create a context object by passing the necessary details to be able to connect to Cosmos DB like account name, database name, key values. We cannot directly update the context object but can override it by initiating a new command like the one used for creation.
Please refer to below links on the PowerShell command:
New-CosmosDbContext
CosmosDB PowerShell Module
Please let me know if this helps or we can discuss further.
----------
If answer helps, please mark it 'Accept Answer'