I’ve looked at almost all of the PowerShell posts before posting this one. I just want to create a simple fixlet that copies a PowerShell script to Server and execute it. This is what I have:
As @AlanM points out, you shouldn’t use download now and should instead use a prefetch in almost all cases.
Also, I just realized that part of your issue is the use of -Command in the command line. That is for one off commands, not for running PowerShell scripts.
Generally you should get the process to work on the command line first, then use that to figure out the actionscript.