Run commands across multiple directory groups.