# Set FinalBuilder Variable in Powershel script that called from Action "Execute Powershell script"

**URL:** https://www.finalbuilder.com/forums/t/set-finalbuilder-variable-in-powershel-script-that-called-from-action-execute-powershell-script/2517
**Category:** Discussion
**Created:** [January 22, 2017, 3:34am UTC](https://www.finalbuilder.com/forums/t/set-finalbuilder-variable-in-powershel-script-that-called-from-action-execute-powershell-script/2517 "2017-01-22T03:34:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sergeykagan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@sergeykagan](https://www.finalbuilder.com/forums/u/sergeykagan)
#### Post date: [January 22, 2017, 3:34am UTC](https://www.finalbuilder.com/forums/t/set-finalbuilder-variable-in-powershel-script-that-called-from-action-execute-powershell-script/2517/1 "2017-01-22T03:34:22Z")

</div>

Hi,   
I use action Execute Power Shell Script" to run Powershell .ps1 file&nbsp;  
What should I do to set Final Builder variable in this file or at least be able to return string back to Final Builder.  
  
It is easy in continua  
&nbsp;write-Host "@@continua[setVariable name=‘Variable’ value=’$val’]"  
but how to do same thing in Finalbuilder  
  
Thanks in advance

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 22, 2017, 11:08am UTC](https://www.finalbuilder.com/forums/t/set-finalbuilder-variable-in-powershel-script-that-called-from-action-execute-powershell-script/2517/2 "2017-01-22T11:08:37Z")

</div>

Hi Sergey,   
  
 Typically we suggest passing FinalBuilder variables as script arguments. Be sure to quote any variables that may contain spaces. As reading the values back into FinalBuilder I typically write the values to a file or out as XML and then parse the output. Currently there is no similar method for setting FinalBuilder variables like Continua.
