Your error is in line
Code:

$space=GetDiskSpace($DiskSet)


as you're supplying an array/object into the GETDISKSPACE() function.

Use DEBUG ON to properly debug your scripts.
_________________________
There are two types of vessels, submarines and targets.