Dependencies:
Import-Module ConfigurationManager
More information:
Configuration Manager PowerShell cmdlets - Configuration Manager
Import-Module -Name Evergreen
Run this on the same machine you have the MECM Console installed.
Must have MECM Configuration Manager installed for commands like Get-CMScript command lets installed
No proxies, be admin or have MECM installed.
Requirements,
Dependencies