Add both WebHttpBinding and NetNamedPipeBinding. Use WebHttpBinding in Script.