Hi @Anonymous ,
As the Q&A forum is an open platform, please pay attention to protecting your privacy information. When posting a question, cover or code your private information. Thanks.
According to your description, it should be a parameter reference problem, please change $Line.DisplayName to $Line.LibraryName and try again.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.