Last time time you saw how to get the current active hours. This is how you set the active hours.
$sb = {
Set-ItemProperty -Path HKLM:SOFTWAREMicrosoftWindowsUpdateUXSettings -Name ActiveHoursStart -Value 10 -PassThru
Set-ItemProperty -Path HKLM… Read the full text.