Compiled PS7 script ignores passed arguments

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

image

When executed directly from PS console it works as expected:

image

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.

image

Please advise.

I am using module v5.7.2 and PWSH 7.1.1

I’ll take a look into this. Seems obviously broken.

This will be fixed in the next version. Will be releasing shortly.

Thanks Adam. I just installed 5.7.3 and it is now compiling and running as expected.