Public/Renderer/Enable-ASAllDisabledLights.ps1
function Enable-ASAllDisabledLights { [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/EnableAllDisabledLights" $result = Invoke-RestMethod -Uri $uri -Method POST Write-Host $result } |