Explicitly turn screen mirroring on or off.

There is an option to toggle screen mirroring but no option to only turn it on or off. If there is a way to detect if screen mirroring is already on then surely a script could be used as a workaround.