Setting SharePoint content databases offline via Script

Body: If you followed the TechNet documentation for Set-SPContentDatabase and try to take SharePoint content databases offline by running Set-SPContentDatabase –Status Offline you will be really disappointed to know that it just does not work. If you look at the TechNet documentation, the type associated with Status is Microsoft.SharePoint.Administration.SPObjectStatus, valid values are “Online”, “Disabled”, “Offline”,…