I am trying to install a Selenium as a service using NSSM and powershell. But whilst the service is created is does not have the correct parameters set.

The same command run in CMD executes successfully and installs the service as expected.

How do you pass the settings into NSSM with Powershell? The command I am using is:

```
nssm install SeleniumHub java -jar C:\bin\Selenium2\selenium-server-standalone-2.53.0.jar -role hub -hubConfig C:\bin\Selenium2\seleniumHubConfig.json

```

NSSM is on my PATH so powershell is correctly finding the NSSM executable but it doesn't seem to handle the parameters in the same way as a CMD