Added debug Write-Host catches

Verifying the logic structure is correct by adding IF/ELSE catches