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%

https://gallery.technet.microsoft.com/office/Generate-Exchange-2388e7c9

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
https://blogs.technet.microsoft.com/tristank/2017/08/29/conditional-formatting-text-in-excel-from-powershell

PowerShell and Excel: Adding Some Formatting To Your Report
https://learn-powershell.net/2012/12/20/powershell-and-excel-adding-some-formatting-to-your-report