#>functionInvoke-CMClientBaselineEvaluation{[CmdletBinding()]param([Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true,ValueFromPipeline=$true,Position=0)][string[]]$ComputerName=$env:COMPUTERNAME)begin{}process{foreach($Computerin$ComputerName){# Get a list of baseline objects assigned to the remote computer$Baselines=Get-WmiObject-ComputerName$Computer-Namespaceroot\ccm\dcm-ClassSMS_DesiredConfiguration

# For each (%) baseline object, call SMS_DesiredConfiguration.TriggerEvaluation, passing in the Name and Version as params$Baselines|foreach{([wmiclass]"\\$Computer\root\ccm\dcm:SMS_DesiredConfiguration").TriggerEvaluation($_.Name,$_.Version)}}}end{}}