SyntaxFix
Write A Post
Hire A Developer
Questions
Can you try the following?
psexec \\server cmd /c "echo . | powershell script.ps1"