# outputing and writing to a file

Hello

Im trying to write a script that is checking some info on servers then the idea is to output that to a file. I also want to add some text to that file in order for the reader to make sense of the data.

for example

Here is the text to understand the following output
OUTPUT OF COMMAND

My OutPut (which works fine)
nslookup \$line | out-file \$migrationcheckfile -append

But now i want to put some text infront of that in the file. How do i do that?