Thanks everyone for your recommendations. With the help of a coworker who is more skilled at PowerShell, we used did the following:
$ipProperties = [System.Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()
$FQDN = "{0}.{1}" -f $ipProperties.HostName, $ipProperties.DomainName
invoke-sqlcmd...