Scheduled Task - Output Truncated

I have a scheduled PowerShell task set to run whether a user is logged in or not and with highest privileges. It’s as follows:

powershell -command &{Get-VMReplication >C:\replicationhealth.txt}

This works fine when I provide the domain admin userid & password, but if I change it to run with the SYSTEM account it runs, but it truncates the text file output at 80 characters. Hopefully this is an easy question, but how do I get the SYSTEM account to output the result without truncating each line at 80 characters?

You could have at least mentioned that you found a solution in another forum. :-/

https://social.technet.microsoft.com/Forums/scriptcenter/en-US/febc4369-8b7e-49d9-af96-62361f265c0b/scheduled-task-using-powershell-truncating-output?forum=ITCG

You’re correct. Sorry.