Welcome to the Do-It forums, PJ.
Yes, microwaves are a great way to cook the plastic. There are other methods but microwaves are perhaps the most widely used method of working the plastic that's safe and reliable without costing several hundred bucks or working with an open flame or an open electric heating coil..