Cd to the executable directory then load the env using dot slash notation .\uxsetenv.bat
Within a PS script you can register the environmental locations by setting variables such as
$UXEXE = (dir env:\uxexe -ea 0).value #to get the executables folder
Then cd to the executables folder and carry out commands using cmd /c
cmd /c "uxadd something... use PX type variables $ such as user=$PsUser..."
May need to catch the outcome of the cmd/c to make sure command works as expected.