Hello and welcome to the community!.

First please read PLEASE READ BEFORE POSTING! Read if you're new to the PowerShell forum!

It helps us to help you if you follow the guidelines for posting code. Do use the insert code button.