Sample TickScript for memory alert for Windows

Hi,

I need to have a warning alert if memory utilization is > 80% for 5 mins and critical alert if memory utilization is > 90% group by host. I know we can have available_percent for mem measurement for Linux hosts, but for Windows hosts, the win_mem measurement doesn’t have available_percent. The closest I can get is available_bytes. Anyone can give me the correct Tickscript?

Thanks in advance!