You’ll want to run automations on your current selection often.
Use the “Get current selection” action to perform actions on the currently selected layers.
Example: Set the layer name for each of the currently selected layers.
Learn more about the “For each” action.