Decoupling your application from the framework

There are a lot of articles written on how to decouple a framework. There are methods to separate the presentation and persistence layer. But these are not the only things a framework can offer. For example, Symfony 2 provides a very nice process component, used for executing commands via the command line.