Enter-PSSession -ComputerName 'mycomputer' Rename-Item -Path 'C:\***\***\Desktop\powershell\temp.txt' -NewName "newtemp.txt"