Get all the site themes in SharePoint using PowerShell

Using powerShell

$site=Get-SPSite "http://serverName:1111/sites/sample"
$web=$site.OpenWeb()
$themes = [Microsoft.SharePoint.Utilities.ThmxTheme]::GetManagedThemes($site)
foreach ($theme in $themes)
{
     write-host -f green $theme.Name
}
                   

Programmatically get all the available SharePoint site themes refer http://www.c-sharpcorner.com/UploadFile/anavijai/6984/