Write a executable powershell to generate a detailed html report for application discovery and dependencies like NAME_1, .Net, Php, C# and their code sizes and connectivity, Ports, services, database connectivity, Communication, API interface running on Windows or linux server. Provide your response in exactly 6 paragraphs (separated nearby paragraphs with 3 aterisk symbols ***).
user