Error code 1 for PowerShell is typically due to the execution policy enforcing script signing. If your group policy enforces an execution policy, you cannot override this on the command line.
Also, you don't want to use -command to execute a PowerShell script. -Command will just load the PowerShell script. You want to use -File to execute the script.