<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to run Powershell file script.ps1 using the databricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-run-powershell-file-script-ps1-using-the-databricks/m-p/56402#M30544</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Following command on running through databricks notebook is not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%sh&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Bash code to print 'Hello, PowerShell!'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;echo &lt;/SPAN&gt;&lt;SPAN&gt;'Hello, PowerShell!'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# powershell.exe -ExecutionPolicy Restricted -File /dbfs:/FileStore/Read_Vault_Inventory.ps1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It;s throwing the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;output&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Hello, PowerShell!&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;bash: line 3: powershell.exe: command not found&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Kindly give some insights how to run the .ps1 file stored in dbfs file store or how to run the powershell commands through databricks notebook&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 04 Jan 2024 06:00:56 GMT</pubDate>
    <dc:creator>sandeephenkel23</dc:creator>
    <dc:date>2024-01-04T06:00:56Z</dc:date>
    <item>
      <title>How to run Powershell file script.ps1 using the databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-run-powershell-file-script-ps1-using-the-databricks/m-p/56402#M30544</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Following command on running through databricks notebook is not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%sh&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Bash code to print 'Hello, PowerShell!'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;echo &lt;/SPAN&gt;&lt;SPAN&gt;'Hello, PowerShell!'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# powershell.exe -ExecutionPolicy Restricted -File /dbfs:/FileStore/Read_Vault_Inventory.ps1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It;s throwing the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;output&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Hello, PowerShell!&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;bash: line 3: powershell.exe: command not found&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Kindly give some insights how to run the .ps1 file stored in dbfs file store or how to run the powershell commands through databricks notebook&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jan 2024 06:00:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-run-powershell-file-script-ps1-using-the-databricks/m-p/56402#M30544</guid>
      <dc:creator>sandeephenkel23</dc:creator>
      <dc:date>2024-01-04T06:00:56Z</dc:date>
    </item>
  </channel>
</rss>

