Updating the task to 2.* version has solved our problem.
How to solve the ADO task issue related with copy files?
We are getting error on running the copy-files task in ADO. It was working fine on last day.
System.Management.Automation.RemoteException: The term 'Write-VstsTaskError' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Additional info:
System.Management.Automation.RemoteException: Could not load file or assembly 'Microsoft.TeamFoundation.TestManagement.WebApi, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.