I have prepared a PowerShell script in PS 3.0 and when I am executing it in PS 2.0 I am getting an error saying "A positional parameter cannot be found that accepts the argument -tail".
The same command is being executed well in PS 3.0. Below is my command.
get-content '\\mtrlpqdc2c4-035\D$\HPBSM\log\odb\jvm_statistics.log' -Tail 1
Is there any other parameter that I can use instead of "-Tail"