title: Array missing argument
body: <p>Recently i build below code to automatically move disabled account to other OU that are older then 30 days (in disabled state)</p>
  <pre><code>   $checkcurrentdate = Get-Date -Format dd/MM/yyyy
      $DateMaxTime = (Get-date).AddDays(-30)
      $getData = get-ADUser -Filter * -Properties * -SearchBase &quot;OU=Disabled,DC=love,DC=donuts&quot; `
      |where {$_.Description -like &quot;LEFT*&quot;} |select name,samaccountname,description
      
      $FinalResult = New-object System.Collections.ArrayList
      
      Foreach ($Data IN $getData){
      $DataPart = $null
      $UserdistinguishedName = $null
      $DataPart=$Data.description
      $DatePart= $DataPart.substring(5,10)
      $FinalDate = [datetime]::ParseExact($DatePart,'dd/MM/yyyy',$null)
      If ($FinalDate -lt $DateMaxTime  ){
       Write-Host &quot;$($Data.samaccountname), $($Data.description) moved to deleteMe&quot; 
       $User = $Data.samaccountname
       $UserdistinguishedName = (Get-ADUser -Identity $User).distinguishedName
       Move-ADObject -Identity $UserdistinguishedName -TargetPath &quot;OU=DeleteMe,,DC=love,DC=donuts,&quot;  #move user to disabled
       $FinalResult.Add(New-Object psobject -Property @{User=$User})
       }
      else{ 
      Write-Host &quot;$($Data.samaccountname), $($Data.description) still in disabled&quot;
      }
      }
      $list = $FinalResult |Select User |Out-String
      $list.gettype()
  </code></pre>
  <p>I start task scheduler and it was working for w few month in automation
  But recently i discovered an error which says below :</p>
  <blockquote>
  <p>Method invocation failed because
  [System.Management.Automation.PSObject] does not contain a method
  named 'op_Addition'.</p>
  </blockquote>
  <p>I run this code manually again and error dissapeard but it stuck my code and was not working</p>
  <p>I am curios why this happend and if there is any way to alert me if this error occurs ?</p>
  <p>probably this happends at line :</p>
  <pre><code> Move-ADObject -Identity $UserdistinguishedName -TargetPath &quot;OU=DeleteMe,,DC=love,DC=donuts,&quot;  #move user to disabled
   $FinalResult += New-Object psobject -Property @{User=$User}
  </code></pre>