ROOT on Windows 11

In the command prompt you have to call C:\root\bin\thisroot.bat
Then if you really want PowerShell, here is the command used in my Windows terminal:

powershell.exe -NoExit -Command "&{Import-Module """C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell 095cf59e -SkipAutomaticLocation -DevCmdArguments """-arch=x64 -host_arch=x64"""}"