This script can be run as re-run daily deployment on machines to trigger Software Update compliance status.

Option Explicit
 On Error Resume Next

Call RefreshServerComplianceState

' WScript.Echo "Finished"

Sub RefreshServerComplianceState()

    ' Initialize the UpdatesStore variable.
     dim newCCMUpdatesStore 

    ' Create the COM object.
     set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")

    ' Refresh the server compliance state by running the RefreshServerComplianceState method.

    ' Output success message.
 '    wscript.echo "Ran RefreshServerComplianceState."
End Sub