Helping a friend learn powershell (or share what little I know), and this came from that, which is kind of cool. Let me know if it's helpful. Probably done by someone else already (no, I didn't use ChatGPT).