Run the requested systemd target and make sure nothing else is running

Start the unit specified and its dependencies and stop all others, unless they have IgnoreOnIsolate=yes:

sudo systemctl isolate emergency.target