"Have you jiggled the cable...?"
function delete-remotefile { PROCESS { $file = "\\$_\c$\temp\temp.txt" if (test-path $file) { echo "$_ File Exists" Remove-Item $file -force echo "$_ File Deleted" } }