To restore a file you should use one of the approaches described in the adjacent thread
. As to preserving old files, you should use combination of Test-Path and Copy-Item commandlets. Test-Path will tell you whether or not the given file already exists and in case of positive answer Copy-Item will rename a restored item via "-Destination" parameter. Thanks.