Hi @Govindagoud patil ,
The -AppSettings
switch for PSSite works as a replace. Therefore, your above script is the proper way to add a setting. If you're doing this often, I would suggest converting into a custom cmdlet or function.
You can also submit feedback or create a new issue on the powershell github asking to create additional switches that will allow setting a specific value in the Hashtable.