Turns out Windows already gives you all the tools you need to block distracting apps and websites—you just have to put them ...
You can invoke PowerShell scripts or script blocks in an elevated context with sudo or test your credentials against the local system or an Active Directory domain ...