I am attempting to run an angular server on a specific port launched from a Powershell script and angular reports configuration failure.
& 'ng' @('serve', '--port', '5200')
The specified command ("serve --port 5200") is invalid. For a list of available options, run "ng help".
Did you mean "serve"?
Whereas without a port it works
& 'ng' 'serve'
I have tried & 'ng' 'serve --port 5200' and & 'ng' @('serve', '--port 5200') and it gets the same error message.
How does one resolve this or work around when attempting to execute ng serve with arguments from a script?
& ng serve '--port' 5200should work