 <p>I ended up figuring some thing out that would work let me know what you all think.</p> <pre><code>$Des = "c:\test\" $DListFiles = Get-ChildItem $Des -EA 0 Switch($Des) { {!$Des} {$DDE = 4; break} {((Test-Path $Des)-ne $false -and $DListFiles -eq $null)} {$DDE = 1; break} {((Test-Path $Des)-ne $false -and $DListFiles -ne $null)} {$DDE = 2; break} {((Test-Path $Des)-eq $false)} {$DDE = 3; break} } $DDE </code></pre>