set_state.ps1: Several fixes to make it work

Fix pathes, and add some wait at the end to let the admin node actually
process the transition.