Terminal

You can quickly launch a Terminal or Shell command by prefixing your command with the prefix selected (> by default).

Terminal feature

Alfred supports Terminal and iTerm, but also provides a "Custom" option where you can drop in a script to use any other Terminal alternative application of your choice.

For scripts and AppleScripts, have a look at the Workflows.