I have a Powershell V2 script that is done and all dandy. I pass parameters to it via
myscript.ps1 -firstparameter Donald -secondparameter Duck
I would like to have a "kicker" or "launcher" window/gui that simply lets me pass the arguments. I've designed the GUI in PrimalForms but I can't figure out how to send the arguments to my script and launch it.
My questions are:
- How would I start my script with my parameters from my PrimalForms GUI (or any other gui)?
- Am I even on the right track here (having my script as a separate scriptfile) or shold I try to put my entire script inside the PrimalForms project?
- Is PrimalForms the way to go with a task like this? (I've been hearing about WPF and I'm thinking with the upcoming release of PS3 and all..)
PS: As of now I do not need any interaction with the GUI after "OK" have been pressed. I have no problem seeing a Powershell window pop up and do all the work in its "ugly glory"..
All help/tips are GREATLY appreciated:)