Thanks for the quick reply 
$PGConnectionString = “Server=localhost;Port=5432;database=‘e1conductordb’;”
Works if it’s defined in the script itself, but if I only define in vairables.ps1 then I get:
[error] Keyword not supported: data source (Parameter ‘keyword’)