If you play 8-ball, the ball that you must execute first is the one that is in the most difficult position.
If the balls are together use a ball close to the joker, if possible this joker ball should be pocketed or be in a good position and with the trajectory of the cue ball hit these balls together to separate them. Ideally, leave a difficult position for your opponent in case you miss the ball.
If the position of the balls on the table are almost all difficult, consider making a safety shot.
If there are no difficult balls, execute, pocket all balls. Use the fundamentals of billiards position technique.