use env var for dl dir. missing ps in yml. use write-host instead of write-output.