no, it's not a server i own, but anyway i found how to do it with the AJAX and NWjs
for those who could need it, this is how i did :
1- create a .bat file with the ping and set an output text file "ping xxx.xxx.xx.xxx -n 1 > test.txt"
(don't forget to add the options you want in the .bat to only write in the .txt the data you want)
2- import both files in your construct 2 files folder (right click > import files)
3- add the AJAX object then make an action to create 2 AJAX requests on "Request URL", one for the .bat (batTAG) and another for the .txt (txtTAG)
4-add an action AJAX request "batTAG" on completed > NWjs run file yourbat.bat
5-add an action AJAX request "txtTAG" on completed > set text to AJAX.lastdata
if that's confusing this screenshoot should help: