Runs commands a, 0Pn, and, aRn with correctly formatted response.