This works:
$psISE.Options.DebugBackgroundColor = \'#FFC86400\'
This doesn\'t:
$attribute = \'DebugBackgroundColor\' ($psI
Just use double quotes after the dot:
$attribute = 'DebugBackgroundColor' $psISE.Options."$attribute"