Script OneLayerOff

You should be able to at least test the script by running the EditPythonScript command and then paste the following:

import rhinoscriptsyntax as rs
layername = rs.GetString("")
if rs.IsLayer(layername):
    if rs.LayerVisible(layername)==True:
        rs.LayerVisible(layername,False)