Is it possible to reboot macOS before provision?

Hello.
I immediately apologize for my English.
I use Vmware builder to create MacOS virtual machine from iso to VmWare vCenter.
I need to install VmWare tools and reboot VM in order to vCenter and Packer get VM’s ip address.
I installed VmWare tools by “startosinstall --installpackage” option.
How can I reboot MacOs after install and before provision?
Thank you.

Solved. Just created pkg with a reboot script.