Detect existence of StartMode property and set it only if found
Detect existence of StartMode property and set it only if found

Start Mode is available in IIS 7.5, but you will have to edit the applicationHost.config directly to enable this feature.
So on some installation of IIS 7.5 this property is not even visible to PowerShell and will crash execution of the script before commiting the changes
https://blogs.msdn.microsoft.com/vijaysk/2012/10/09/iis-8-whats-new-application-pool-settings/

alastairtree/Library,red-gate/Library,Parametric/OctopusDeployCommunityLibrary,alastairtree/Library,alastairtree/Library,Parametric/OctopusDeployCommunityLibrary,Parametric/OctopusDeployCommunityLibrary,red-gate/Library