You cannot import a custom environment in execute python script. You can install some packages with execute python script, but it has limitations on packages that can be installed depending on the number of dependencies of the package. Glad you can use the notebook and work on your experiments now.
If an answer is helpful, please click on or upvote which might help other community members reading this thread.