Hello @sunny123,
You are trying to use String.CopyTo() method to copy file to a folder. CopyTo(Int32, Char[], Int32, Int32) - Copies a specified number of characters from a specified position in this instance to a specified position in an array of Unicode characters.
To copy file to a folder you should use Copy-Item.