Change View Desktop Pool settings (Auto logoff after disconnect) through PowerShell

Today I had to set a specific View Desktop pool setting, in my case “Auto logoff after disconnect” on several pools. Because View Administrator has no integrated possibility to select multiple pools and set multiple settings...