When protein powder is used as part of a strength building routine it should be taken directly after a workout.
To lose weight, protein powder is best used as a meal replacement. Protein powder can be made into a shake and consumed around the time of a normal meal.
Whey protein powder should be consumed directly after a workout for muscle gain.
The use of protein powder for muscle gain should go hand in hand with your workouts.