The following cmdlet will read the last 100 lines of a file and wait forever and display any additions to the file
Get-Content c:\path\log.txt -Last 100 -Wait
The following cmdlet will read the last 100 lines of a file and wait forever and display any additions to the file
Get-Content c:\path\log.txt -Last 100 -Wait