Install-AADCloudSyncToolsPrerequisites
This cmdlet checks for the presence of PowerShellGet v2.2.4.1 or later, the Azure AD module, and the MSAL.PS module. It installs these items if they're missing.
Reference: https://learn.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-7.2
https://www.powershellgallery.com/packages/AzureAD/2.0.2.140
https://github.com/AzureAD/MSAL.PS
Note: After enabling TLS 1.2 on the server, restart the server and follow these articles to download respective updates/modules for PowerShellGet, Azure AD Module & MSAL.PS module.
Let me know if the issue still persists.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.