Can you provide the full stack trace (instead of just Exception.Message) ?
Modifying this:
Write-host $($Error[0].Exception.Message)
into this should do the trick:
Write-host $($Error[0].Exception)
Thanks!
Modifying this:
Write-host $($Error[0].Exception.Message)
into this should do the trick:
Write-host $($Error[0].Exception)
Thanks!