The following udf should do what you want:

GetADUserProperties() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=194576#Post194576

Paste the UDF to the bottom of your script.
Not sure which attribute you need, but something like this

 Code:
$hdir=GetADUserProperties("HomeDirectory")
$hfol=GetADUserProperties("HomeDrive")
? $hdir
? $hfol