I couldn’t find a simple way to turn the developer dashboard on and off via PowerShell - there’s a STSADM property for it, but who wants to use STSADM anymore? So here’s a function to change the setting quickly.