Change SharePoint 2013 SuiteBarBrandingElementHtml with PowerShell

Here is a snippet of code to change (and link) the default “SharePoint” text in a new SharePoint 2013 site.

# Uncomment to load the Snap-in if you aren't using the SharePoint PowerShell Shortcut
# Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

# Enter the URL of the site you wish to update
$webappurl = ""
$webApp = Get-SPWebApplication $webappurl

# Enter the HTML/Link for the text
$html = '<div class="ms-core-brandingText"><a style="color:white;" href="' + $webappurl + '">SharePoint</a></div>'
$webApp.SuiteBarBrandingElementHtml = $html

# Update SharePoint