diff --git a/testTaskGate.ps1 b/testTaskGate.ps1 index 765ed0f..00327e7 100644 --- a/testTaskGate.ps1 +++ b/testTaskGate.ps1 @@ -27,7 +27,7 @@ $Port = 8082 $Global:Tasks = @( # On-Boarding, left column - @{ Id='setSVSPowerplan'; Name='setSVSPowerplan'; Label='Set SVS Powerplan'; HandlerFn='Set-SVSPowerPlan'; Page='onboard'; Column='left' }, + @{ Id='setSVSPowerplan'; Name='setSVSPowerplan'; Label='Set SVS Powerplan'; HandlerFn='Handle-SVSPowerPlan'; Page='onboard'; Column='left' }, @{ Id='installSVSMSPModule'; Name='installSVSMSPModule'; Label='Install SVSMSP Module'; HandlerFn='Install-SVSMSPModule'; Page='onboard'; Column='left' }, @{ Id='installCyberQP'; Name='installCyberQP'; Label='Install CyberQP'; HandlerFn='Install-CyberQP'; Page='onboard'; Column='left' }, @{ Id='installSplashtop'; Name='installSplashtop'; Label='Install Splashtop'; HandlerFn='Install-Splashtop'; Page='onboard'; Column='left' }, @@ -344,11 +344,17 @@ function returnRespondEmpty { # On-boarding handlers -function Set-SVSPowerPlan { +function Handle-SetSVSPowerPlan { param($Context) + + # 1) call into your module + Set-SVSPowerPlan + + # 2) log & write back a simple text response Write-LogHybrid "PowerPlan set" "Success" "OnBoard" - Respond-Text $Context "Powerplan applied" + Respond-Text $Context "PowerPlan applied" } + function Install-SVSMSPModule { param($Context) Write-LogHybrid "HTTP trigger: Install-SVSMSPModule" "Info" "OnBoard"