Hi, @Gopan ,
If you want to change the name of the URL, simply use the script below will work for you.
$WebApp = SPWebApplication | where {$_.Name -match "OldWebAppName"}
$WebApp.Name ="NewWebAppName"
$WebApp.Update()
# This bit is just to verify it updated correctly
Get-SPWebApplication | where {$_.Name -match "NewWebAppName"}
And for URL, you will need to add a new DNS, configure AAM (Alternate Access Mappings) and add a new binding in IIS.
You can follow this tutorial :https://howtodowithsharepoint.wordpress.com/2018/01/26/sharepoint-2016-how-to-implement-alternate-access-mapping/
If the answer is helpful, please click Accept Answer and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.