Get the coordinates a command ran at

Currently my solution involves using execute aligned, summoning a marker, and throwing its data into a scoreboard or storage depending on my use case. Is there a better way to do this?
Continue to help post