I would like to add a parameter possibly '-CloseAction' for the scripter to define what action they would like to happen when the progress bar is minimized:
- Shrink to notification tray
- Close progressbar but continue script
- Close progressbar and exit / cancel script