Dears,
I have an environment variable containing all the arguments to pass to a program. VAR_NAME=/arg1 /arg2 /arg3 ...
I tried invoking the program using:
program $Env.VAR_NAME
Unfortunately the environment variable expends to a single argument.
Thanks.
Just split the environment variable to return a list of arguments:
program ($Env.VAR_NAME -split ' ')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With