Unable to remove space between lines in PowerShell Script

%3CLINGO-SUB%20id%3D%22lingo-sub-1731493%22%20slang%3D%22en-US%22%3EUnable%20to%20remove%20space%20between%20lines%20in%20PowerShell%20Script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1731493%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20script%20to%20notify%20users%20about%20the%20password%20expire%20notification.%20Though%2C%20users%20can%20receive%20notification%20on%20their%20email%20however%20password%20change%20instructions%20which%20bifurcated%20into%204%20points%2C%20those%20points%20are%20coming%20with%20space.%20We%20want%20there%20shouldnt%20be%20any%20space%20in%20lines.%20Need%20Help%20on%20priority.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1731493%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Elines%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1732427%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20remove%20space%20between%20lines%20in%20PowerShell%20Script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1732427%22%20slang%3D%22en-US%22%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F815363%22%20target%3D%22_blank%22%3E%40cloudspace247%3C%2FA%3E%2C%3CBR%20%2F%3EAre%20you%20sending%20email%20to%20your%20users%20in%20plain%20text%20or%20html%3F%3CBR%20%2F%3EWould%20you%20be%20so%20kind%20to%20provide%20snippets%20of%20your%20code%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1733113%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20remove%20space%20between%20lines%20in%20PowerShell%20Script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1733113%22%20slang%3D%22en-US%22%3EHi%3CBR%20%2F%3EAny%20sample%20code%20please%3C%2FLINGO-BODY%3E
Occasional Visitor

I have created script to notify users about the password expire notification. Though, users can receive notification on their email however password change instructions which bifurcated into 4 points, those points are coming with space. We want there shouldnt be any space in lines. Need Help on priority. 

2 Replies
Hello @cloudspace247,
Are you sending email to your users in plain text or html?
Would you be so kind to provide snippets of your code?
Hi
Any sample code please