That is indeed very slow :smileycry:
Which PowerCLI version are you using, there were some performance improvements in the last builds.
We could try to something similar but with the datastore provider, that should be a bit faster.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference