Without your current code, it's not clear how you're trying to achieve this.
But on a high level I believe the easy way to do it would be to have the server name and desired static IP in a CSV. Iterate over the names, run Set-NetIPAddress, Set-DNSClientServerAdress and Add-Computer on the remote host.