Passing bool parameter to powershell script shortcut
try with this:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "& 'C:\Program Files\MySoftware\diagnostic\DiagnosticTool.ps1'" -copyAll:$true
of with -file
parameter to pass bool
to a switch parameter of your script try:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file "C:\Program Files\MySoftware\diagnostic\DiagnosticTool.ps1" {-All:$False}
The last one is taked from TechNet but to be honest I'll never be able to work with it.