Rename SharePoint List Field with PNP

While writing the script to create lists for my solution for SharePoint Online I had to rename Title field in a list. It's not so obviously as just to create a new field.
You should get the field and update it's title. But there's one feature you should know - it's how to update field properties.
$url = Read-Host "Enter site url, for example https://markimarta.com/sites/Euro2024/chat/"
Connect-PnPOnline -Url $url -Interactive
Set-PnPTraceLog -On -Level Debug
$listTitle = "Votes"
$voteList = New-PnPList -Title $listTitle -Template GenericList
$ttlField = Get-PnPField -List $voteList -Identity Title
Set-PnPField -List $voteList -Identity Title -Values @{Title="TeamTitle"}