runCommand -package:options -package:shake -package:process -is:exact -package:cabal-install package:xmonad-contrib is:exact

Given a list of command/action pairs, prompt the user to choose a command using dmenu and return the corresponding action.