Car inspection and driver side window glass problem?

My friend’s Toyota corolla ’02 failed in inspection. At the inspection center inspector asked him to roll down the glass. Now this (driver side windows glass) was having problem since last one year. The window glass will not roll down completely or when you want to bring up it stuck in between and after several trial pressing switch it will come up after half an hour.

The motor vehicle inspector checked all other things there was no problem except this windows glass which he saw that not working. Finally he disqualified car saying ‘ safety issue ‘. My friend called Toyota dealership and describe problem to fix it and they say it is the sealed motor must have gone bad and replacing that part and labour will cost appx – $ 450.

He also checked with other auto repair shop and they also gave similar estimate of $ 410. The question is – Is there any better solution which is cheaper in cost to fix it.