We use the Past Perfect Continuous to show that something started in the past and continued up until another time in the past. "For five minutes" and "for two weeks" are both durations which can be used with the Past Perfect Continuous. Notice that this is related to the Present Perfect Continuous; however, the duration does not continue until now, it stops before something else in the past.
Using the Past Perfect Continuous before another action in the past is a good way to show cause and effect.
Using the Past Perfect Continuous before another action in the past is a good way to show cause and effect.
More Details available soon