Ups ... your script is exiting at the point "if $Connection"

Any Ideas ?

Thanx