Hi LucD,
Do you have an example of using the object returned by the function?
Would I just pass it into a variable like;
$Orphans = Remove-OrphanedData - Datastore $_
And then access $Orphans with a For Each loop?
Sorry if this is a stupid question - still getting to grips with this!