You will get results for the cmdlet Get-MsolDomainFederationSettings -DomainName myCompany.com
only after you run Convert-MsolDomainToFederated -DomainName myCompany.com -SupportMultipleDomain
cmdlet and the domain is successfully converted to federated domain. Below is the screenshot of how the output should look like:
Could you please confirm that the domain 'myCompany.com' appears as federated domain in Azure Portal. Also, make sure you you are using admin account to run the cmdlet. If the domain is still a managed domain, you will not get any results for the Get-MsolDomainFederationSettings
cmdlet.
-----------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.