cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-229061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EF%C3%BChren%20Sie%20das%20Skript%20in%20Powershell%20aus%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EAlso%20in%20cmd%20kann%20ich%20laufen%3C%2FP%3E%0A%3CPRE%3Ejmp.exe%20C%3A%5Cscript.jsl%3C%2FPRE%3E%0A%3CP%3Eund%20es%20%C3%B6ffnet%20JMP%20und%20f%C3%BChrt%20das%20Skript%20aus.Wei%C3%9F%20jemand%2C%20wie%20man%20das%20Gleiche%20in%20Powershell%20macht%3F%3C%2FP%3E%0A%3CP%3EIch%20habe%20es%20versucht%3C%2FP%3E%0A%3CPRE%3EStart-Process%20-FilePath%20%22C%3A%5CProgram%20Files%5CSAS%5CJMPPRO%5C14%5Cjmp.exe%22%20-ArgumentList%20%22C%3A%5Cscript.jsl%22%3C%2FPRE%3E%0A%3CP%3EOhne%20Gl%C3%BCck.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-430584%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20in%20Powershell%20ausf%C3%BChren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-430584%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJa%2C%20am%20Ende%20habe%20ich%20das%20Gleiche%20getan.%20Ich%20erstelle%20eine%20ENV-Variable%20(ich%20glaube%2C%20sie%20ist%20lokal%20f%C3%BCr%20diese%20PowerShell-Sitzung)%20und%20bereite%20sie%20sofort%20mit%20JMP%20vor%2C%20das%20von%20derselben%20PowerShell-Sitzung%20aus%20gestartet%20wird.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-430552%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20in%20Powershell%20ausf%C3%BChren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-430552%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20habe%20Umgebungsvariablen%20verwendet%3B%20Legen%20Sie%20es%20einfach%20in%20Powershell%20fest%20und%20laden%20Sie%20es%20dann%20in%20JSL%20herunter.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-341213%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20in%20Powershell%20ausf%C3%BChren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-341213%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEigentlich%20sollte%20das%20funktionieren%2C%20was%20du%20geschrieben%20hast.%3C%2FP%3E%3CP%3EIch%20benutze%20das%3A%3C%2FP%3E%3CPRE%3E%24JMP_path%20%3D%20%22C%3A%5CProgram%20Files%5CSAS%5CJMP%5C15%5CJmp.exe%22%0A%24JMPScriptPath%20%3D%20'C%3A%5CMyScript.jsl'%0AStart-Process%20-FilePath%20%24JMP_path%20-ArgumentList%20(%22%60%22%22%2B%24JMPScriptPath%2B%22%60%22%22)%20-Wait%3C%2FPRE%3E%3CP%3EWas%20ich%20dazu%20hinzuf%C3%BCgen%20m%C3%B6chte%2C%20ist%20die%20%C3%9Cbergabe%20einer%20weiteren%20Variable%20an%20das%20Skript.%20Irgendeine%20Idee%2C%20wie%20man%20das%20macht%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229071%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20in%20Powershell%20ausf%C3%BChren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229071%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMacht%20nichts.Ich%20habe%20es%20gefunden.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%26amp%3B%20%22jmp.exe%22%20%22C%3A%5Cscript.jsl%22%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
vince_faller
Super User (Alumni)

Run script in powershell

So in cmd I can run 

jmp.exe C:\script.jsl

and it will open JMP and run the script.  Anyone know how to do the same in powershell?

I tried

Start-Process -FilePath "C:\Program Files\SAS\JMPPRO\14\jmp.exe" -ArgumentList "C:\script.jsl"

With no luck. 

Vince Faller - Predictum
1 ACCEPTED SOLUTION

Accepted Solutions
vince_faller
Super User (Alumni)

Re: Run script in powershell

never mind.  I found it.  

& "jmp.exe" "C:\script.jsl"
Vince Faller - Predictum

View solution in original post

4 REPLIES 4
vince_faller
Super User (Alumni)

Re: Run script in powershell

never mind.  I found it.  

& "jmp.exe" "C:\script.jsl"
Vince Faller - Predictum
miguello
Level VII

Re: Run script in powershell

Actually what you wrote should work.

I use this:

$JMP_path = "C:\Program Files\SAS\JMP\15\Jmp.exe"
$JMPScriptPath = 'C:\MyScript.jsl'
Start-Process -FilePath $JMP_path -ArgumentList ("`""+$JMPScriptPath+"`"") -Wait

What I would like to add to this is to pass another variable into the script. Any idea how to do that?

vince_faller
Super User (Alumni)

Re: Run script in powershell

I've been using environment variables; just set it in powershell then get it in JSL. 

Vince Faller - Predictum
miguello
Level VII

Re: Run script in powershell

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.

 

Recommended Articles