{"id":13898,"date":"2017-09-15T06:00:57","date_gmt":"2017-09-15T13:00:57","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=13898"},"modified":"2017-09-14T14:31:54","modified_gmt":"2017-09-14T21:31:54","slug":"using-powershell-core-in-primalscript","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/","title":{"rendered":"Using PowerShell Core in PrimalScript"},"content":{"rendered":"<p>Back in May 2016, SAPIEN did a blog post about &#8220;<a href=\"https:\/\/www.sapien.com\/blog\/2016\/05\/26\/using-bash-with-primalscript-2016\/\" target=\"_blank\" rel=\"noopener\">Using Bash with PrimalScript 2016<\/a>&#8220;.\u00a0 In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well.<\/p>\n<p>Keep in mind, due to the fact that PowerShell Core still in it&#8217;s early stages, you&#8217;ll have modify the console executable path each time you install the updated version of PowerShell Core: &#8220;<strong><em>C:\\Program Files\\PowerShell\\x.0.0-xxxx-x<\/em><\/strong>&#8220;.<\/p>\n<p>Another thing, PowerShell Core still is progressing in its Beta stage. So, SAPIEN won&#8217;t support any issues found with PowerShell Core until it reaches RTM status. If you find any issues with &#8220;PowerShell Core&#8221;, please send them directly to their Github link at:<br \/>\n<a href=\"https:\/\/github.com\/PowerShell\/PowerShell\">https:\/\/github.com\/PowerShell\/PowerShell<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-weight: bold;\">The Setup<\/span><\/h3>\n<p>By default PrimalScript, will execute the PowerShell script(s) under Windows PowerShell. In order allow execution of PowerShell Core scripts, we need to add the PowerShell Core executable in their list of &#8220;<strong>Command Window<\/strong>&#8220;.<\/p>\n<p>1. From the PrimalScript menu, click on &#8220;<strong>File<\/strong>&#8220;, and scroll-down to &#8220;<strong>Options<\/strong>&#8220;:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_01-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_01\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_01_thumb-1.png\" alt=\"PrimalScript_PSC_01\" width=\"448\" height=\"243\" border=\"0\" \/><\/a><\/p>\n<p>2. Go to &#8220;<strong>File Groups<\/strong>&#8220;, to &#8220;<strong>Add New<\/strong>&#8221; PowerShell Core file groups:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_02-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_02\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_02_thumb-1.png\" alt=\"PrimalScript_PSC_02\" width=\"454\" height=\"210\" border=\"0\" \/><\/a><\/p>\n<p>3. Go to &#8220;<strong>Command Window<\/strong>&#8220;, to add &#8220;<strong>New<\/strong>&#8221; Shell, and the &#8220;<strong>Rename<\/strong>&#8221; the &#8220;<strong>New Shell<\/strong>&#8221; name to &#8220;<strong>PowerShell Core 64 bit<\/strong>&#8220;:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_03-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_03\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_03_thumb-1.png\" alt=\"PrimalScript_PSC_03\" width=\"458\" height=\"227\" border=\"0\" \/><\/a><br \/>\n<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_04-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_04\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_04_thumb-1.png\" alt=\"PrimalScript_PSC_04\" width=\"457\" height=\"227\" border=\"0\" \/><\/a><br \/>\n<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_05-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_05\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_05_thumb-1.png\" alt=\"PrimalScript_PSC_05\" width=\"458\" height=\"224\" border=\"0\" \/><\/a><\/p>\n<p>4. After all these changes are done, you&#8217;ll be asked to <em>&#8220;..restart..&#8221;<\/em> PrimalScript.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_06-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_06\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_06_thumb-1.png\" alt=\"PrimalScript_PSC_06\" width=\"461\" height=\"213\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-weight: bold;\">Executing the code<\/span><\/h3>\n<p>Before executing the code, you\u2019ll need to open the PowerShell Core console:<\/p>\n<p>1. From the menu, click on the &#8220;<strong>View<\/strong>&#8221; tab, then click on &#8220;<strong>Shell<\/strong>&#8220;, and under the &#8220;<strong>Console Window<\/strong>&#8221; select &#8220;<strong>PowerShell Core 64 bit<\/strong>&#8220;.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_08-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_08\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_08_thumb-1.png\" alt=\"PrimalScript_PSC_08\" width=\"463\" height=\"281\" border=\"0\" \/><\/a><br \/>\n<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_07-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_07\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_07_thumb-1.png\" alt=\"PrimalScript_PSC_07\" width=\"462\" height=\"159\" border=\"0\" \/><\/a><\/p>\n<p>Now that the PowerShell Core console is open, anything that you select to execute will go to that active console.<\/p>\n<p>2. To execute the code, proceed to highlight a portion or the whole script.<\/p>\n<p>3. Right-click on the highlighted area, and select &#8220;<strong><em>Execute selection in PowerShell<\/em><\/strong>&#8220;.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_010-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_010\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_010_thumb-1.png\" alt=\"PrimalScript_PSC_010\" width=\"465\" height=\"283\" border=\"0\" \/><\/a><\/p>\n<p>4. As this will not complete executing the code, go to the &#8220;<strong>Console Window<\/strong>&#8220;, then press enter at the cursor line to execute the code manually.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_011-1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"PrimalScript_PSC_011\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_011_thumb-1.png\" alt=\"PrimalScript_PSC_011\" width=\"465\" height=\"302\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-weight: bold;\">Limitations<\/span><\/h3>\n<p>Remember, PrimalScript will let you create PowerShell Core script(s), but there are few limitation:<\/p>\n<p>1. Intellisense is meant for Windows PowerShell, so there might be some cmdlet parameters that won&#8217;t show.<br \/>\n2. Executing selected code block, at the &#8220;<strong>Command Window<\/strong>&#8220;, you&#8217;ll need to press enter to run the code.<\/p>\n<p>The workaround for executing the code automatically, is to execute the following command:<br \/>\n&#8220;<span style=\"color: #0000ff;\"><strong>Remove-Module PSReadLine<\/strong><\/span>&#8221;<\/p>\n<p>Now you can create and test your code without any problem.<\/p>\n<p>Please, feel free to give it a try!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back in May 2016, SAPIEN did a blog post about &#8220;Using Bash with PrimalScript 2016&#8220;.\u00a0 In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it&#8217;s early stages, you&#8217;ll have modify the console executable path [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1143,410],"tags":[1215,1216],"class_list":["post-13898","post","type-post","status-publish","format-standard","hentry","category-powershell","category-primalscript-software-news","tag-powershell-core","tag-primalscript-2017"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Back in May 2016, SAPIEN did a blog post about &quot;Using Bash with PrimalScript 2016&quot;. In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it&#039;s early stages, you&#039;ll have modify the console executable path\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Max Trinidad\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DEV SAPIEN Blog - Tools for IT Success\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Back in May 2016, SAPIEN did a blog post about &quot;Using Bash with PrimalScript 2016&quot;. In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it&#039;s early stages, you&#039;ll have modify the console executable path\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-09-15T13:00:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-09-14T21:31:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Back in May 2016, SAPIEN did a blog post about &quot;Using Bash with PrimalScript 2016&quot;. In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it&#039;s early stages, you&#039;ll have modify the console executable path\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#blogposting\",\"name\":\"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog\",\"headline\":\"Using PowerShell Core in PrimalScript\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/max_t\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.sapien.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/PrimalScript_PSC_01_thumb-1.png\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#articleImage\"},\"datePublished\":\"2017-09-15T06:00:57-07:00\",\"dateModified\":\"2017-09-14T14:31:54-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#webpage\"},\"articleSection\":\"PowerShell, PrimalScript, PowerShell Core, PrimalScript 2017\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/#listItem\",\"name\":\"Software News\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/#listItem\",\"position\":2,\"name\":\"Software News\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/primalscript-software-news\\\/#listItem\",\"name\":\"PrimalScript\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/primalscript-software-news\\\/#listItem\",\"position\":3,\"name\":\"PrimalScript\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/primalscript-software-news\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#listItem\",\"name\":\"Using PowerShell Core in PrimalScript\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/#listItem\",\"name\":\"Software News\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#listItem\",\"position\":4,\"name\":\"Using PowerShell Core in PrimalScript\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/software-news\\\/primalscript-software-news\\\/#listItem\",\"name\":\"PrimalScript\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/max_t\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/max_t\\\/\",\"name\":\"Max Trinidad\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/\",\"name\":\"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog\",\"description\":\"Back in May 2016, SAPIEN did a blog post about \\\"Using Bash with PrimalScript 2016\\\". In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it's early stages, you'll have modify the console executable path\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2017\\\/09\\\/15\\\/using-powershell-core-in-primalscript\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/max_t\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/max_t\\\/#author\"},\"datePublished\":\"2017-09-15T06:00:57-07:00\",\"dateModified\":\"2017-09-14T14:31:54-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog","description":"Back in May 2016, SAPIEN did a blog post about \"Using Bash with PrimalScript 2016\". In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it's early stages, you'll have modify the console executable path","canonical_url":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#blogposting","name":"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog","headline":"Using PowerShell Core in PrimalScript","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/max_t\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2017\/09\/PrimalScript_PSC_01_thumb-1.png","@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#articleImage"},"datePublished":"2017-09-15T06:00:57-07:00","dateModified":"2017-09-14T14:31:54-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#webpage"},"articleSection":"PowerShell, PrimalScript, PowerShell Core, PrimalScript 2017"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dev.sapien.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/#listItem","name":"Software News"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/#listItem","position":2,"name":"Software News","item":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/primalscript-software-news\/#listItem","name":"PrimalScript"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/primalscript-software-news\/#listItem","position":3,"name":"PrimalScript","item":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/primalscript-software-news\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#listItem","name":"Using PowerShell Core in PrimalScript"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/#listItem","name":"Software News"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#listItem","position":4,"name":"Using PowerShell Core in PrimalScript","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/primalscript-software-news\/#listItem","name":"PrimalScript"}}]},{"@type":"Organization","@id":"https:\/\/dev.sapien.com\/blog\/#organization","name":"DEV SAPIEN Blog","description":"Tools for IT Success","url":"https:\/\/dev.sapien.com\/blog\/"},{"@type":"Person","@id":"https:\/\/dev.sapien.com\/blog\/author\/max_t\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/max_t\/","name":"Max Trinidad"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/","name":"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog","description":"Back in May 2016, SAPIEN did a blog post about \"Using Bash with PrimalScript 2016\". In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it's early stages, you'll have modify the console executable path","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/max_t\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/max_t\/#author"},"datePublished":"2017-09-15T06:00:57-07:00","dateModified":"2017-09-14T14:31:54-07:00"},{"@type":"WebSite","@id":"https:\/\/dev.sapien.com\/blog\/#website","url":"https:\/\/dev.sapien.com\/blog\/","name":"DEV SAPIEN Blog","description":"Tools for IT Success","inLanguage":"en-US","publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DEV SAPIEN Blog - Tools for IT Success","og:type":"article","og:title":"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog","og:description":"Back in May 2016, SAPIEN did a blog post about &quot;Using Bash with PrimalScript 2016&quot;. In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it's early stages, you'll have modify the console executable path","og:url":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/","article:published_time":"2017-09-15T13:00:57+00:00","article:modified_time":"2017-09-14T21:31:54+00:00","twitter:card":"summary_large_image","twitter:title":"Using PowerShell Core in PrimalScript - DEV SAPIEN Blog","twitter:description":"Back in May 2016, SAPIEN did a blog post about &quot;Using Bash with PrimalScript 2016&quot;. In a way, using similar steps, we can setup and use PowerShell Core in PrimalScript 2017 as well. Keep in mind, due to the fact that PowerShell Core still in it's early stages, you'll have modify the console executable path"},"aioseo_meta_data":{"post_id":"13898","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-28 16:05:41","updated":"2026-08-28 16:05:41"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/\" title=\"Software News\">Software News<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/primalscript-software-news\/\" title=\"PrimalScript\">PrimalScript<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUsing PowerShell Core in PrimalScript\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"Software News","link":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/"},{"label":"PrimalScript","link":"https:\/\/dev.sapien.com\/blog\/topics\/software-news\/primalscript-software-news\/"},{"label":"Using PowerShell Core in PrimalScript","link":"https:\/\/dev.sapien.com\/blog\/2017\/09\/15\/using-powershell-core-in-primalscript\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/13898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=13898"}],"version-history":[{"count":5,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/13898\/revisions"}],"predecessor-version":[{"id":13923,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/13898\/revisions\/13923"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=13898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=13898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=13898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}