After reading your comment, I was interested in whether or not I could achieve this through the built-in Shortcuts app. Unfortunately, "Restart" is not an available action.
Edit: Actually, I was looking in the wrong place. It’s an option for the "Shut Down” action. Thanks, @jwond!
Yeah shortcuts could be much more useful. I wanted to make a post request when I arrive at some place with some additional javascript logic to update an authentication token. It just doesn’t work when running in the background, I have to manually trigger it