I have a PowerShell script that checks the CPU level of the server it is running on, and then if it is above a certain threshold it will run a SQL stored procedure and e-mai
If import-module fails then you'll need to run install-module first. Installing SSMS or SSDT doesn't include sqlserver module by default.
install-module sqlserver update-module sqlserver import-module sqlserver