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