This is a small function that wraps the Get-SPFeature, Enable-SPFeature and Disable-SPFeature to control state of farm, site or web scoped features.

I makes it a breeze to set the state of the built-in SharePoint features during a PowerShell deployment.

Here is an example that enables two farm features.