Can we use the asm-deployer wsman.reboot_server method to simplify all this?