First I would make sure the switch is bad or has been tested good.
I may be missing something but I do not know why just a switch replace would call for a pc reprogram.
I would get a all data sub and study up on it and check TSB and go threw the repair procedure on it.
http://www.alldata.com/products/diy/index.html
On the price of switch check around someplaces you can by them cheaper or get a dealer discount.
There is several on line gm parts links.
GM parts direct and others.
MT