But i only receive the last file in the c$ could somebody help me to change all the filenames put it in a string and then rename the files on fileserver
You should start with learning the basics of Powershell. Here are some good sources: Beginner Sites and Tutorials
Your task could be accomplished like this: