Automate device enrolment process for testing

Hi @jerdog

No I haven’t resolved it yet.