My below Powershell code is able to successfully upload the artifacts in My SharePoint library. But if I try to loop through my artifacts one by one, it gives me error as D: