Can you attach the function as a file?
I don't want to clean up the blank lines every time :smileygrin:
Btw, did you run the Get-Module before the New-ContentLibrary cmdlet?
Also, does $env:PSModulePath contain the location where the PowerCLI modules are stored?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference