Public/Renderer/Disable-ASAllLights.ps1

function Disable-ASAllLights
{
    [CmdletBinding(DefaultParameterSetName = 'ByName')]

    Param([String]$Shell)

        # first, get Shell we want to talk to
        $shellLocal = Get-ASDefaultShell
        if($PSBoundParameters['Shell']) {
            $shellLocal  = $Shell
        }
        if([System.String]::IsNullOrEmpty($shellLocal)) {
            Write-Host 'Target shell is not set. Please specify target shell with -Shell parameter or by Set-ASDefaultShellTarget snippet.'
            return
        }


        $uri = "http://$($shellLocal):4444/api/renderer/DisableAllLights" 
        $result = Invoke-RestMethod -Uri $uri -Method POST
        Write-Host $result
}