For a new tentacle the easiest way to do this would be to hit the Show script option and copy that out to Powershell. You can then amend the port within the script and use that to configure any targets needed.
If you need to amend a tentacle that has already been configured, you can use server comms command on tentacle.exe to amend this.
I hope this helps, please let me know if you have any further questions.