During a recession, there is an inefficient use of resources both in terms of labor which can be seen from the fact that unemployment rises and in terms of other resources with factories lying shut down and machinery not being used.
To stimulate aggregate demand, it is essential to bring in more money into the country. The money in the hands of people would allow them to start buying more goods and services and hence boost consumption of the produce of domestic industry. This increases the money available with people more and a cycle out of recession is created.
The exchange rate determines whether a country's goods and services are bought by people in other countries. If your country can deliver the same product at a price less than what can be delivered by another country, your exports are going to rise. A way to do this is to decrease the value of your currency and allow citizens of country X to get 10 dollars with one unit of their currency instead of 1 dollar. Now, they can easily buy a product that you export which is worth $10. This boosts demand for your exports. Also, as people find importing products exorbitantly expensive, it would increase their consumption of goods manufactured by industries within the country.
In this way the exchange rate policy can stimulate aggregate demand during a recession.
This depends on what you are trying to stimulate demand for -- imports or domestic goods. If you are trying to stimulate the aggregate demand for domestic goods, the thing to do is to try to weaken your currency -- to make it worth less compared to other currencies.
If you do this, it becomes more difficult to buy imported goods because those goods will be more expensive than they used to be. At the same time, it will be easier to export because foreign countries' currencies will buy more of your country's goods.
If you want your citizens to be able to buy more from other countries, however, you will want to keep your currency strong so that imports will remain cheap.