I am using the following command to copy files from a network share to my local hard drive based on a CSV file.
import-csv C:\TEST\test.csv | foreach {copy-item -path $_.npath -destination 'C:\TEST\'}
The next step would be to then use a different CSV file to rename these files based on their current file name.
Is there a command that will allow me to copy and item and rename it as well?