How to ssh and remotely manage GUIs on my iMac with Remote Login/Management?
Apple Remote Desktop (ARD) has a Curtains mode that blocks the local user from seeing what's happening on the screen. It may meet your needs.https://www.apple.com/remotedesktop/remoteassistance.html