Hello
with get-smresources you have to specify the host name, yes!
so you can get the SQL resources for all the hosts you have
one example you can start with is
Foreach ($hostnamein ((Get-SmHost).Hostname)) { get-smresources-HostName$hostname-PluginCodeSCSQL }
then you can modify/improve the script as you like