I have WSL running on my Windows computer and when I install CMake, it is accessible only in a command prompt, not in WSL. How can I get access to it from my PowerShell WSL window?
You need to install CMake within WSL, rather than within Windows. Fire up your WSL distribution and install the cmake
package from your distribution's repository. For example, on Debian-based Linux distributions:
sudo apt install cmake
This will install the CMake tools for Linux, within WSL.