expose cmd on session

This makes it convenient to test things like killing a process.