How do you use protein powder for muscle/weight gain?

I'm slim and workout 4 times a week. Trying to gain some weight and muscles. Thinking about purchasing a protein powder. But heard it helps in both reducing and gaining weight.

how to gain weight using protein powder and exercise?
How do you use protein powder for muscle/weight gain?
Post Opinion