Maya runs any commands in the userSetup.mel file whenever it starts up. You can use this file to set up your working environment or execute commonly used MEL commands like aliasing.
The userSetup.mel script is executed during the initialization and setup phase of Maya so only commands which set up your working environment and have no dependencies on Maya functionality can be successfully run in this script.
To run a certain set of MEL commands every time Maya starts up