Working download to support directory

Everything seems to work, except for one minor detail… ;-)
DSC authenticates, but connectMethod.invoke() doesn’t return anything.
Argh!