# P_commandtolist
## Syntax:
@commandtolist**({list}, {command})**
## Use Case:
Iterates through each item in a list and executes the specified command for each one. During execution, the current item is stored in the '@ListItem' variable.
## Arguments:
- **{list}**   : The list name.
- **{command}**: The command to run (use semicolon for multiple).
## Examples:
1. **/echo @commandtolist(myList, say hello $ListItem)**
## See Also:
loop