Thank you for your answer Erik!
But it doesn't solve the problem as I had the option enabled before posting the question. The script runs, but it doesn't work because it requires Mechanical GUI, which doesn't open if you update all design points from Workbench.