Check for Path
function Get-PathExists {
param(
[string]$Path
)
try {
Get-Item $Path -ErrorAction Stop
return $true
}
catch {
Add-LogEntry -Type Error -Message $_.Exception.Message
return $false
}
}