You should be able to do it. However, there should be a list for each environment which ones to be enabled or disabled. for eg: below line of code is to enable, and opposite for disable of a test step. testStep.disabled = false
For instance you may also use system variables like -Denvironment=QA
Put this in a project load script on meeting conditions you needed. if QA enable this list else Dev enable this list else enable this list.