Advertisement
march_happy

Untitled

Mar 6th, 2024
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.33 KB | Source Code | 0 0
  1. param(
  2.     [string]$Executable = $env:INST_JAVA,
  3.     [string]$Arguments = $env:INST_JAVA_ARGS
  4. )
  5.  
  6. # Combine the executable and arguments
  7. $Command = "$Executable $Arguments"
  8.  
  9. # Add external arguments passed to the script
  10. foreach ($arg in $args) {
  11.     $Command += " $arg"
  12. }
  13.  
  14. echo $Command
  15. # Execute the command
  16. iex $Command
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement