People in eastern Australia are in danger of experiencing electricity outages as the market operator scrambles to ensure the lights stay on.