Can someone give me insight here? Powershell is skipping the Get-Volume command in the following lines:
## Warning message
Write-Host -ForegroundColor Red 'This application will delete all stored information on your disk. Please ensure this is what you want to do. Use with caution!'
## Get available disks
Get-Volume
## Select Disk
$diskDrive = Read-Host 'Which drive do you want to format/convert?'
I have tried to | it out to a variable and tried adding the -Verbose flag as well. Neither of which work. I feel sure it is something obvious but I'm missing it. Thanks in advance for the help.