12 lines
354 B
PowerShell
12 lines
354 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
Get-Content .env | ForEach-Object {
|
|
if ($_) {
|
|
$name, $value = $_.split('=', 2)
|
|
set-content env:\$name $value
|
|
}
|
|
}
|
|
|
|
function RunProgram([string] $program, [parameter(ValueFromRemainingArguments = $true)][string[]] $arguments) {
|
|
Start-Process -NoNewWindow -Wait -FilePath $program -ArgumentList $arguments
|
|
}
|