PowerShell Extensions - get a setting

I needed to get a Sitecore setting in my PowerShell script and couldn't find any other online documentation. So hopefully this helps someone.

And it is easy to achieve:

$mailServer = [Sitecore.Configuration.Settings]::GetSetting("MailServer")
$mailServer