fusionpbx-install.sh/windows/resources/start-pgsql.ps1

7 lines
221 B
PowerShell

Function Start-PSQL([string]$command) {
$location = Get-Location
Set-Location "C:\Program Files\PostgreSQL\10\bin"
$result = .\psql.exe --username=postgres -c "$command"
Set-Location $location
return $result
}