About composer if the agent has installed composer, you can just use composer <YourCommand> with Command Line step.
composer <YourCommand>
Command Line