Fabien,
Thank you very much. But, i am getting the following error:
The string starting:
At C:\scripts\VMware\DatastoreCheck.ps1:34 char:14
+ $style = <<<< @"
is missing the terminator: "@.
At C:\scripts\VMware\DatastoreCheck.ps1:67 char:1
+ <<<<
+ CategoryInfo : ParserError: ( <style>
body...onfirm:$false
:String) [], ParseException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString