A powerful typhoon that drenched the Philippines earlier this week is bearing down on Taiwan Friday , forcing the cancellation of flights and the closure of schools and offices .