That’s most of the times not as easy or helpful as you might think.
You cannot use a module on a remote computer you installed on your local machine out of the box. You could use implicit remoting but that’s actually made for the other way around. Using a module on your local computer you have installed on a remote computer. And if you want to use this on a remote computer you’d have to deal with the so called double hop issue.
A much better option would be to have a server with all needed modules and run the necessary scripts there.
And BTW: in the code you shared you’re not using the modules you import at the beginning of your script block.
Here you have some more information about implicit remoting and about how to circumvent the double hop issue:
I’d say it does not have to be a Remote Desktop Session Host and it does not even have to be a server but yes - that’s the idea. You have one machine with all needed modules and you run all queries from there.