# Feature request: embedded PowerShell scripts

**URL:** https://www.finalbuilder.com/forums/t/feature-request-embedded-powershell-scripts/4925
**Category:** Feature Requests
**Created:** [March 20, 2013, 1:42am UTC](https://www.finalbuilder.com/forums/t/feature-request-embedded-powershell-scripts/4925 "2013-03-20T01:42:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seankearon](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/seankearon/32/112_2.png) [@seankearon](https://www.finalbuilder.com/forums/u/seankearon)
#### Post date: [March 20, 2013, 1:42am UTC](https://www.finalbuilder.com/forums/t/feature-request-embedded-powershell-scripts/4925/1 "2013-03-20T01:42:49Z")

</div>

In the latest beta (1.0.0.1647) the PowerShell task lets you&nbsp;run PS scripts and pass arguments into the scripts, which lovely stuff. &nbsp;

The scripts are external to Continua and it would be very useful to also be able to embed the script into Continua and for it to be run by Continua. &nbsp;

Further to this, we should be able to use Continua variables inside the scripts that are replaced by Continua before the script is run.

---

<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: [March 20, 2013, 11:27am UTC](https://www.finalbuilder.com/forums/t/feature-request-embedded-powershell-scripts/4925/2 "2013-03-20T11:27:21Z")

</div>

We did consider this, in fact in early pre-beta builds thats how the powershell action was implemented. The reason we changed it is because we are trying to avoid windows dependencies in the agents, as we hope to have agents running on other platforms using mono at some point. We will revisit this in the future as it should now be possible to have agents with different sets of actions due to other architecture changes since we made that change.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 21, 2013, 2:20am UTC](https://www.finalbuilder.com/forums/t/feature-request-embedded-powershell-scripts/4925/3 "2013-03-21T02:20:12Z")

</div>

I’ve been thinking about this a slightly different way. In my repositories, I’ve added a {myrepo}\ci\ folder to include all the finalbuilder components etc. However for upgrading web sites, I have a couple of powershell scripts that automate IIS tasks to configure a maintenance site during upgrades, so Joe Public doesn’t have a bad user experience. I figured I would be able to use Continua and powershell using that approach. Just my two cents.

---

<div class="post-metadata">

### Author: ![seankearon](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/seankearon/32/112_2.png) [@seankearon](https://www.finalbuilder.com/forums/u/seankearon)
#### Post date: [March 21, 2013, 2:05am UTC](https://www.finalbuilder.com/forums/t/feature-request-embedded-powershell-scripts/4925/4 "2013-03-21T02:05:40Z")

</div>

@Vincent: Okay, that sounds good. It would be nice to have the scripts in the CI. What about automatic injection of parameters into the scripts?   
  
 @ Jamie: yes, that’s probably what I’m going to be doing too.
