How can i run a ps1 script with currenty set environment variable?

powershell_script ‘da-dba’ do
code ". c:\script\dba-da.ps1"

i am setting a environment variable for sqlplus first time before this resource get executed but still
when this script run its give me error that sqlplus is not recognized as term
can anyone help me how to run this script with by setting env variable.