If you have trouble gaining muscle, you need to add calories to your diet. The idea to supplement caloric intake with protein shakes is a great idea, its easier to add calories to your diet in liquid form than more solid food. The only thing is that you won’t exclusively gain muscle in the process, you will also gain some fat. But that is what “cutting” is all about, its to lose body fat to gain muscle definition.
Also adding calories means quality calories, not pizzas and Whoppers and fried chicken and cola and beer.