├── ArrayShift.png ├── ArrayUnShift.png ├── EverybodyLovesPowerShell.png ├── ImportHtmlGallery.png ├── PSGalleryExcel.png ├── PSGalleryStats.png ├── PowerShellAzureFunctionApp.png ├── PowerShellFunctionTypes.png ├── README.md ├── SongList.png ├── Thumbs.db ├── acn.png ├── image1.png ├── image2.png ├── image3.png ├── potus.png ├── potusXLS.png └── shifting.png /ArrayShift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/ArrayShift.png -------------------------------------------------------------------------------- /ArrayUnShift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/ArrayUnShift.png -------------------------------------------------------------------------------- /EverybodyLovesPowerShell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/EverybodyLovesPowerShell.png -------------------------------------------------------------------------------- /ImportHtmlGallery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/ImportHtmlGallery.png -------------------------------------------------------------------------------- /PSGalleryExcel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/PSGalleryExcel.png -------------------------------------------------------------------------------- /PSGalleryStats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/PSGalleryStats.png -------------------------------------------------------------------------------- /PowerShellAzureFunctionApp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/PowerShellAzureFunctionApp.png -------------------------------------------------------------------------------- /PowerShellFunctionTypes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/PowerShellFunctionTypes.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | How to Embed PowerShell Within a C# Application 2 | - 3 | 4 | Check out James Brundage demoing this in this [4 minute Channel 9 video](https://channel9.msdn.com/blogs/bruceky/how-to-embedding-powershell-within-a-c-application). 5 | 6 | I took his example and worked up an extension method in C# to run PowerShell. 7 | 8 | ![image](https://raw.githubusercontent.com/dfinke/images/master/image1.png) 9 | 10 | 11 | ![image](https://raw.githubusercontent.com/dfinke/images/master/image2.png) 12 | 13 | 14 | ![image](https://raw.githubusercontent.com/dfinke/images/master/image3.png) -------------------------------------------------------------------------------- /SongList.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/SongList.png -------------------------------------------------------------------------------- /Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/Thumbs.db -------------------------------------------------------------------------------- /acn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/acn.png -------------------------------------------------------------------------------- /image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/image1.png -------------------------------------------------------------------------------- /image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/image2.png -------------------------------------------------------------------------------- /image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/image3.png -------------------------------------------------------------------------------- /potus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/potus.png -------------------------------------------------------------------------------- /potusXLS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/potusXLS.png -------------------------------------------------------------------------------- /shifting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinke/images/fb9b613793c47e5dfeef77aebe5b6045b02ff35a/shifting.png --------------------------------------------------------------------------------