Use set-env instead of export.