While Loop Through Array Powershell Gallery Sharepoint