Have you taken a look at the CodeWarrior IDE Automation Guide? It describes how to control the IDE from Perl scripts on Windows.
You'll find the IDE Automation Guide in the PDF folder of your CodeWarrior installation. Or choose CodeWarrior Help from the IDE's Help menu.
Marc.