I would like to request that the capability be added to all the running of Powershell Script Jobs in Foreground. This will make it consistent with running .bat,.exe, and .cmd files.
I might be wrong here, so Henrik feel free to tell me if I am... but I think what you're requesting it would be more involved than what you're thinking.
The Powershell task type within VisualCron is not launched using a traditional 'console' environment, it's got no console to show you. It has to do with how PowerShell is being executed. When you launch powershell yourself, you're launching via the PowerShell.exe, which uses the ConsoleHost host. This host allows interaction.
As I said, likely not the best explanation, and I do agree it would be a nice feature.
So currently to satisfy your need, my suggestion would be to do what we do. Instead of using a PowerShell task, save your script and do the following as an EXECUTE task:
64-bit (if on a 64-bit OS), or 32-bit if on a 32-bit OS:
Command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments: C:\Path\To\Your\Script.ps1
32-Bit (if on a 64-bit OS)
Command: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Arguments: C:\Path\To\Your\Script.ps1
My addition to the feature request for this would be as follows:
I would love it if VisualCron had the ability to choose whether or not to launch a powershell script the current way or via an Execute style like i did as a workaround above. The PowerShell task already has an option to select a file, maybe an additional checkbox could be available when that radio button is selected so you could shell it out to PowerShell.exe (along with the option to run hidden). AND, while we're at it... if you do this... it would be beneficial if a selection for 32-bit or 64-bit powershell was available.
However that could be accomplished, would be awesome 🙂
Brian