Ok, that does give me something, I've have now tried to do this:
$esxName = "my esx server"
$stats=Get-Stat-Entity (Get-VMHost$esxName) -Statdatastore.totalWriteLatency.average-MaxSamples 1 -IntervalMins 5
And I have retrieved a list of my NFS datastores by using this command:
$nfsds = Get-Datastore | where {$_.Type -eq "NFS"}
However, I've been trying to find a stable way (that is UUID I guess) to couple these two results.
I have found an "Instance" value in the return data from Get-Stat, this does infact remind me of a UUID, but I have not been able to find it in my data from Get-Datastore. Or maybe I'm just doing it wrong?
(I'm not a powershell experienced hacker :-( )