Metasploit module not working properly

Hi everyone this morning I was able to upgrade my reverse shell to a meterpreter on a windows machine using the shell_to_meterpreter module. I did it a few times without having issues. Now it doesn’t do it on the same machine, it says “powershell is not installed on the target”. Than it just says “command stager in progress” with a percentage. When it arrives to 100% it says post module execution completed but I don’t get a meterpreter. Do you know why?