I have the need to create an executable script using PWSH 7.1, however it is ignoring the passed arguments when called.
In order to test the above I created a very small script to just display all received arguments
When executed directly from PS console it works as expected:
A PSD1 is created with parameters for NetCore compilation:
The script compiles without errors:
However when executed, it first opens a separate window and then displays the passed arguments count as 0.
Please advise.