*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build:SAPIEN PowerShell Studio 2018 Version 5.5.148
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 Enterprise
Version 1709
OS Build 16299.98
32 or 64 bit OS: 64-bit
*** Please add details and screenshots as needed below. ***
Ok. Please consider the below very simple powershell script:
Code: Select all
param (
[Parameter(Mandatory = $false)]
[Switch]$force
)
Add-Type -AssemblyName "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
If ($force)
{
Write-Host "used force parameter" -ForegroundColor Green
}
Else
{
Write-Host "Did not use force parameter" -ForegroundColor DarkRed
}
Executable is not working as expected.
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM