Macos Big Sur Select The Disk Where You Want To Install Macos

I launch the servers using a bat file and have been able to get subprocess to do that no problem, but I am unsure how to go about adding the functionality of issuing commands to the server via the console.