* Make script PSv5 compatible again, apply some PS best practices
* this commit removes PowerShell Core only features that were introduced with #2378 to ensure compatibility with PSv5
* adds comment based help
* use consistently cased Cmdlet and variable names
* improves input data related error handling
* adds PS code regions for automatic code folding
* automates the creation of the manifest file at the correct destination path
* corrects the use of Write-Host and Write-Output
Fixes#3061
* Adhere to YAML formatting conventions
* Use cross-platform new line handling
Co-authored-by: Sebastian Neumann <sebastian.neumann@experienceone.com>