This is an interesting offhand comment. You could implement a very similar tool by SSHing to localhost.
> ssh user@privileged-commands ./do-something