If I execute the script in the console the progress bar is shown perfectly, but if I convert the script to exe with ps2exe the progress bar is not shown.
How can I solve this issue? Thank you
$totalTimes = 10
$i = 0
for ($i=0;$i -lt $totalTimes; $i++) {
   $percentComplete = ($i / $totalTimes) * 100
   Write-Progress -Activity 'Doing thing' -Status "Did thing $i  times" -PercentComplete $percentComplete
   sleep 1
}
