I recently graduated with a Masters in Mechanical Engineering and have received my EAD card. I have a job offer for a software engineering position as I've good experience with programming which I learnt when I was doing my undergrad and also worked as an intern back in India for a startup (*my undergrad degree is mechanical too).

If i take the software engineer job, will it affect getting STEM Extension/ H1B? I know software engineering is not related to mechanical engineering as required by the rules for OPT. But is there any way to show my experience/ reference letter from a professor from the CS dept of my university which will help in the STEM Extension ?

Thank you.