Can I install a powershell module on endpoints?

hey everyone, I have to install WSL (Windows Subsystem for Linux) on some workstations and would like to know if I can push the cmdlet wsl --install by just taking a custom action, targeting my machines, selecting powershell as my action script and entering the cmdlet in the action script box “wsl --install” (without the quotes).

I know I am asking, but I did it and got an exit code 0 on the client logs but after a reboot running wsl –list –verbose shows that it’s not installed.

So am I missing something or this just doesn’t work? I searched the forum for install powershell module but dont get any relevant hits.

Thanks!