Call $scope.$apply
on the passed elementId
Call $scope.$broadcast
on the passed elementId
Set a local variable to the scope of an elementId and execute the cmd.
Set a local variable to the scope of an elementId and execute the cmd. All of which is enclosed in an IIFE.