powersheel 7 no longer support snapins. we cannot use sqldm powershell cmdlets anymore. It would be helpfull if you can replace powershell sql dm snapins with modules.
https://wiki.idera.com/display/SQLDM/Use+PowerShell+to+automate+SQL+Diagnostic+Manager+functions