# Missing variable expansion for powershell script parameters

**URL:** https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034
**Category:** Bugs
**Created:** [September 26, 2008, 7:47am UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034 "2008-09-26T07:47:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![martin.stahl](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@martin.stahl](https://www.finalbuilder.com/forums/u/martin.stahl)
#### Post date: [September 26, 2008, 7:47am UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034/1 "2008-09-26T07:47:40Z")

</div>

Hi,

I have to handover a path as a parameter to a powershell script. This path is stored in an project variable. Therefore I put %src\_dir% into the script parameters inside the powershell options dialogue. I expect that the evaluated variable value is hand over to the powershell command line but unfortunately the string %src\_dir% is set into the command line.

Wrong handling, misinterpreted concept or bug?

Thanks in advanced!

Regards,

Martin

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 29, 2008, 1:35am UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034/2 "2008-09-29T01:35:01Z")

</div>

Which version of FinalBuilder are you using? I tested this with FinalBuilder 6.2 and it worked as expected.

---

<div class="post-metadata">

### Author: ![martin.stahl](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@martin.stahl](https://www.finalbuilder.com/forums/u/martin.stahl)
#### Post date: [September 29, 2008, 7:04am UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034/3 "2008-09-29T07:04:28Z")

</div>

Hi Vincent,

I use Version 6.2.0.1019.

To clarify the situation I have added a picture which shows the dialogue an the log output.

Regards,

Martin

 ![fb_powershell_Options.png](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/52b7c572c17d37b86c4d4dc9e518ffb941b61d17.png)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 29, 2008, 9:32am UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034/4 "2008-09-29T09:32:26Z")

</div>

Hi Martin

Very strange, it's working on my dev machine, but on other machines it's not. I suspect it may be a javascript version issue.. I've reorganised the code a bit so any errors will be clearer, I'll let you know when I have a build with it working.

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 3, 2008, 9:40am UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034/5 "2008-10-03T09:40:12Z")

</div>

Hi Martin  
  
The fix for this is in today's official update.

---

<div class="post-metadata">

### Author: ![martin.stahl](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@martin.stahl](https://www.finalbuilder.com/forums/u/martin.stahl)
#### Post date: [October 6, 2008, 12:06pm UTC](https://www.finalbuilder.com/forums/t/missing-variable-expansion-for-powershell-script-parameters/3034/6 "2008-10-06T12:06:23Z")

</div>

Hi Vincent,   
  
 With version 6.2.0.1063 this issue is resolved. All our powershell scripts work perfectly now.   
 Many thanks!   
  
 Best regards,   
 Martin
