PS Action to Create a Layer Mask and call Mask AI

Its unnecessary now as the Preferences give you the options:

image