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. :-/

You’re correct. Sorry.