Hello @Koen Helsen
I would recommend to check the output log for any errors. This 600 seconds lead to think about some type of timeout with the WMI connectors, since usually the command should be quite fast (<20secs).
Other option is to enable verbose by running first:
Set-PSDebug -Trace 1
Get-PSDepth
$VerbosePreference="Continue"
Get-WmiObject -Query "SELECT * FROM Msft_Volume" -Namespace Root/Microsoft/Windows/Storage >> c:\temp\log.txt
Hope this helps with your query,
---------
--If the reply is helpful, please Upvote and Accept as answer--