It’s trivially easy to get a file listing — it’s getting it as text that can be put into a document that’s the hard part. And as I noted, you can do it in Command Mode, if you go dust off your DOS handbooks first. You do DIR Directory -> filename.txt and then import the text file. Clunky. Why can’t you just copy the listing and paste it?
As for rotating, it’s trivial to rotate images 90 degrees, you just swap the x and y coordinates of pixels. Can you rotate by an arbitrary angle and still get a clean image?