"Valid until" was set by the script as the name of a note property of an AD object. The link below describes it in detail.
Specifies the note property name.
Use this parameter with the NotePropertyValue parameter. This parameter is optional.
This parameter was introduced in Windows PowerShell 3.0
Mark as answered if you find this post helpful