Remote powershell script works in Powershell, but not from Designer


I have a Powershell script to run some remote commands to a server in another domain.

The script works perfectly from Powershell and Powershell ISE, on the same server as the job is sent from, but when applying it as a script in Designer, i get "access denied" when running it in Jobqueue.
This means I reach the destination from the server..

Note that Firewall is OK, WinRM is OK, trustedhosts is OK. The script in general works perfectly fine in Powershell.

Can it be the server function in the process step malfunctioning? Im using SQL Processing server.
Also having ScriptComponent - ScriptExec as process task.