This is perfect!
Thank you very much Richard!!!
Here’s the final script:
$PublicInterface = Get-NetConnectionProfile -IPv4Connectivity Internet | Select-Object -ExpandProperty InterfaceAlias
Rename-NetAdapter -Name $PublicInterface -NewName “Public”