powershell test-path remote computer

C++
$cred = Get-Credential
Invoke-Command -ComputerName Computer1 -Credential $cred -ScriptBlock { Test-Path "C:\Temp\test.txt" }

Source

Also in C++: