Actually, there might not be. draw_model_rotating is a function I made to replace the techroom ship and weapon selection ANIs with rotating models. If you could check for a POF extension, then have it load the model rather than the ANI, and then check if the model variable was set and the ANI variable wasn't, you should be able to toss the function in and it'll work how you'd expect. You should probably call model_unload for each stage the model is used in (Basically every time you call model_load) once you're done with the command screen. There's probably an existing function to do that for ANIs.
The only unusual thing about the function is the rotation_buffer. That's a pointer to a float that you should define as a static variable in the function that calls draw_model_rotating. That lets the function save the position of the ship for each frame for that instance of rotation (otherwise it would just sit there, because the function has no other way of telling where it's being called from).