> standard windows way

The thread you linked to suggests 'timeout'[0]

[0] https://learn.microsoft.com/en-us/windows-server/administrat...

Scroll down. Ping is preferred because timeout is buggy