<?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 Re: Run script in powershell in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/229071#M45427</link>
    <description>&lt;P&gt;never mind.&amp;nbsp; I found it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;amp; "jmp.exe" "C:\script.jsl"&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Oct 2019 15:35:03 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2019-10-11T15:35:03Z</dc:date>
    <item>
      <title>Run script in powershell</title>
      <link>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/229061#M45426</link>
      <description>&lt;P&gt;So in cmd I can run&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;jmp.exe C:\script.jsl&lt;/PRE&gt;
&lt;P&gt;and it will open JMP and run the script.&amp;nbsp; Anyone know how to do the same in powershell?&lt;/P&gt;
&lt;P&gt;I tried&lt;/P&gt;
&lt;PRE&gt;Start-Process -FilePath "C:\Program Files\SAS\JMPPRO\14\jmp.exe" -ArgumentList "C:\script.jsl"&lt;/PRE&gt;
&lt;P&gt;With no luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 15:20:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/229061#M45426</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-10-11T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in powershell</title>
      <link>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/229071#M45427</link>
      <description>&lt;P&gt;never mind.&amp;nbsp; I found it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;amp; "jmp.exe" "C:\script.jsl"&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 15:35:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/229071#M45427</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-10-11T15:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in powershell</title>
      <link>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/341213#M58963</link>
      <description>&lt;P&gt;Actually what you wrote should work.&lt;/P&gt;&lt;P&gt;I use this:&lt;/P&gt;&lt;PRE&gt;$JMP_path = "C:\Program Files\SAS\JMP\15\Jmp.exe"
$JMPScriptPath = 'C:\MyScript.jsl'
Start-Process -FilePath $JMP_path -ArgumentList ("`""+$JMPScriptPath+"`"") -Wait&lt;/PRE&gt;&lt;P&gt;What I would like to add to this is to pass another variable into the script. Any idea how to do that?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 22:24:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/341213#M58963</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2020-12-11T22:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in powershell</title>
      <link>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/430552#M68028</link>
      <description>&lt;P&gt;I've been using environment variables; just set it in powershell then get it in JSL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:56:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/430552#M68028</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2021-10-26T19:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Run script in powershell</title>
      <link>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/430584#M68033</link>
      <description>&lt;P&gt;Yes, I ended up doing the same thing. I create a ENV variable (it is local to that PowerShell session I believe) and immediately ready it with JMP that is launched from the same PowerShell session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 22:31:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-script-in-powershell/m-p/430584#M68033</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2021-10-26T22:31:54Z</dc:date>
    </item>
  </channel>
</rss>

