I'm trying to find a way to grab a specific line from a string based on line number.
For instance, I want to pull whatever is in line 19.
From what I understand, I could do this with Get-Content and -Index if I was pulling from a file. Is there an alternative when working with variables instead of files?