Create Exe with script that takes params

Nov 14, 2014 at 4:59 PM
I have a script that takes a few parameters that I would like to create an exe with. Using ps2exe, is this possible?

I already made the exe and tested it and I am not getting the deisred results, I just wasn't sure if I was missing something or not.

So, for example, my script takes a parameter FirstName and LastName. My script works like this:

My-Script -FirstName Mike -LastName Smith

And the output is
Mike Smith, Hello World!

I would like to call myexe.exe -FirstName Mike -LastName Smith and get the same results.

Thanks,
sb