Help, Execute-Process, Netsh

Hi

I need some help with running this command with the PADT:
netsh advfirewall firewall add rule name=“X Y Z” dir=in action=allow program=“C:\program files\xyz\xyze.exe”

I have tried the following but it doesn’t seem to work. I get error window from PADT:
Execute-Process -FilePath “C:\Windows\System32\netsh.exe” -Arguments “advfirewall firewall add rule name=“X Y Z” dir=in action=allow program=“C:\program files\xyz\xyz.exe””

I think it has something to do with the -Arguments command not being in the right formatting, maybe I’m missing some “”

Can anyone who is a script expert help out :smiley: ?

5 min after, I solved it myself… typical…

For anyone interested it was the Arguments parameter that was missing quotes. The final command is:
Execute-Process -FilePath “C:\Windows\System32\netsh.exe” -Arguments “advfirewall firewall add rule name=”“X Y Z”" dir=in action=allow program="“C:\program files\xyz\xyz.exe”""