Hi @batBot
Refer to below snippet, although it is not by Powershell activity, it also can be used to ping test.