Added cmdletbinding to main script body to allow common parameters to the main script rather than just the functions