Enumerate roles on a Windows 2008 R2 Server using PowerShell

The two PowerShell commands below will enumerate roles on a Windows 2008 R2 Server.  The same data can be found via the Server Manager GUI, but the PowerShell option can create an overall list.

import-module servermanager

get-windowsfeature

enumerate_roles