I think it's recommended to use Foodcritic's built-in Rake task rather than shelling out: http://acrmp.github.io/foodcritic/#build-framework-integration