Check if Module is installed:

Get-Module -ListAvailable -Name ExchangeOnlineManagement

If no result returned, install module:

Install-Module -Name ExchangeOnlineManagement -Force

Connect to Exchange Online:

Connect-ExchangeOnline