When executing:
nrfutil completion install powershell
The output suggests adding this to $PROFILE
# From nrfutil completion install # WARNING: nrfutil tab-completion may become slow because of Windows Defender if ( Test-Path -Path ${USERPROFILE}\.nrfutil\share\nrfutil-completion\scripts\powershell\setup.ps1 ) { . ${USERPROFILE}\.nrfutil\share\nrfutil-completion\scripts\powershell\setup.ps1 }
I did some debuging to find out why the tab-completion does not work.
If I am not wrong the variable ${USERPROFILE} should be $env:USERPROFILE.
At least on my system (Windows 11, PowerShell 7.4) that was the solution.
Am I doing something wrong?