Assign Statement Query

Hi noticed that to abort the process, ErrorAction.Abort was assigned to a variable (result) in a video and the process was aborted.

Is assigning a command to a variable equivalent to INVOKING that? We didnt use result variable anywhere…