I have this script which compares files in two areas of the disk and copies the latest file over the one with the older modified date.
$filestowatch=get-con
Just to offer the alternative to the Test-Path cmdlet (since nobody mentioned it):
[System.IO.File]::Exists($path)
Does (almost) the same thing as
Test-Path $path -PathType Leaf
except no support for wildcard characters