Power off NUC from remote app

I stumbled over this post that may shed some light