Move file
Move-Item C:\MyDirectory1\MyFile.txt C:\MyDirectory2\ -force
-force causes an overwrite if necessary.
You can provide a full target path to perform a rename at the same time if wanted.
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.