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
You want to use Test-Path:
Test-Path
Test-Path -PathType Leaf