Ruby 4.0 RubyInstaller Team
Use this command to install Ruby 4.0:
winget install --id=RubyInstallerTeam.Ruby.4.0 -e The RubyInstaller project provides a self-contained Windows-based installer that includes a Ruby-language execution environment and a baseline set of required RubyGems and extensions.