#Detect File : Detect-file.ps1 $FileName = "nome file.estenzione" if (Test-Path -Path "$($env:userprofile)\Desktop\$FileName"){ Write-Output "0" }