Write Background Color to Cells Greater than 50%

Working on this script and I’m trying to write Background Color Yellow to Cells Greater than 50%

I’m trying to write in this script at

Lines 724 thru 726 to set the Background color to Yellow of any cell that is greater than >50%

if ($ShowFreeLogDiskSpace)
$Output+=“Log Disk Free”

For issues or questions about gallery scripts you should contact the author.

Ditto to what Olaf says…
Read up on what you are trying, a quick search using –
powershell excel conditional formatting
— give you this.

Conditional Formatting Text in Excel from PowerShell

PowerShell and Excel: Adding Some Formatting To Your Report