Test-Connection required root privileges. How to run this cmdlet without elevation of pwsh via sudo? As /usr/bin/ping.
7.1.1
The problem is solved. By setting suid bit for pwsh
sudo chmod 4755 /opt/microsoft/powershell/7/pwsh