How to show script results on Hotspot login page ?

Hi
I’m looking for way to show script results on hotspot login page

for example
This is test internet in netwatch

:put [/tool netwatch get 0 status]

I need the results (up or down) show in hotspot login page

I think this should be done via php processing

Sent from my LG-D850 using Tapatalk