I have prepared the documentation with step by step guide.You can view directly on SlideShare.
Here is the SlideShare Link – PS Query with Union.
For those you are not aware of how to download SlideShare Presentation, Here is the small Visuals that will help you.
As usual, Please do comment if you find it useful or it can be improve more.
Hope this helps 🙂