I'm not sure you know it, but I think you're actually asking several questions. Yes, you can compile one or more procedures with a batch-mode Progress session. Some operating systems (Unix, for example) accomplish this easier than others.
At the most basic level, you need a script to start the Progress session and a procedure to run that includes the compile statement(s). How complex it gets from there depends on your particular requirements.
Please provide a little more detail so we can give you a more specific answer...
Thanks,
sshowers