WARNING: Failed to load the ‘SQLAS’ extension: SQL Server WMI provider is not available on SERVERNAME
I was getting this error when loading SQLPS from a job. I never did figure out the root cause. It may have something to do with SQL Server 2008 management objects being installed along with SQL Server 2014 components.
I just suppressed the warnings using the WarningAction flag
Import-Module -Name SQLPS -DisableNameChecking -WarningAction SilentlyContinue