ALIGN will certainly do that nicely, without any custom code. And it could be done using points at opposite ends of a single edge just as well as with opposite corners. But it will require selection of the object, picking four locations, and answering a question. If you're looking for fewer steps [it can't be a lot fewer], is the idea that you select the object and the two destination points only? If not, describe exactly the steps you imagine for the User.
Should there be any test made that the destination points are actually in the right kind of relationship to each other, i.e. that their X & Y coordinate differences match the XY size of the object? What should be done if they don't match size and shape, such as if the object is rectangular as in your image but the points you give it are opposite corners of a square?
Would the object always be rectangular? Also, would the object and the intended position always be at orthogonal orientations, or could there be other angles involved? If the object is a Block that is orthogonal in its defined orientation, maybe that could be handled easily enough, but if it's a Polyline, or a Block at some different base orientation, it could be much more of a challenge.
Kent Cooper, AIA