Let’s say there is a Powershell script file named test.ps1 with the following content: param ([Boolean] $FromSchTask) if ($FromSchTask) { echo Yes } else { echo No } When I run this script with -File parameter in command prompt by powershell.exe, for example: C:\>powershell.exe -ExecutionPolicy bypass -File ./test.ps1 -FromSchTask $True It will throw the following …
Tag: boolean