Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- param(
- [string]$Executable = $env:INST_JAVA,
- [string]$Arguments = $env:INST_JAVA_ARGS
- )
- # Combine the executable and arguments
- $Command = "$Executable $Arguments"
- # Add external arguments passed to the script
- foreach ($arg in $args) {
- $Command += " $arg"
- }
- echo $Command
- # Execute the command
- iex $Command
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement