The night before, you cook the beans, rinse them, and sort through them, removing any pebbles. Add the beans to a large pot, cover them by 2 inches with cold water, cover the pot with the lid, and soak overnight in the refrigerator. Drain the beans in a colander in the sink and rinse.
In a large pot over medium-low heat, combine the beans, ham shank, chicken broth, thyme leaves, onion powder, garlic powder, and black pepper, cayenne pepper, smoked paprika, red pepper flakes, and bay leaves. Cover and simmer for 45-60 minutes or until the beans are soft.
Cook the rice according to the package directions.
When the beans are almost done, brown the bacon in a large skillet over medium heat. When the bacon is halfway through the browning process, add the onions, celery, and bell peppers. Stir several times. Cook for 5-7 minutes or until the vegetables are soft. Reduce the heat to low and add the garlic; cook for 1 minute, stirring constantly.
Remove the ham shank or ham hock from the beans and cut any meat from the bones. Remove the bay leaves from the beans. Using a large slotted spoon so most of the liquid is left behind, add the black-eyed peas to the skillet with the vegetable mixture and heat through.
Spoon the black-eyed bean and vegetable mixture over the rice. Season with kosher salt and black pepper to taste. If desired, sprinkle with chopped green onions. Serve promptly.