• Error in workflow - need help works in powershell

    I can run this in Powershell no issues, would appropriate any help.  I am writing how many days left until an account expires to a VA.

    THE CAUSE
    $Expiration
    = (([datetime]::FromFileTime((Get-ADUser Identity $user -Properties "msDS-UserPasswordExpiryTimeComputed…