Microwaving sliced onions on high for 10 minutes is the closest you will get to caramelising them. Unfortunately, you'll never recreate properly caramelised onions cooked low and slow in a cast iron pan.