Run Powershell script through Application deployment:
powershell.exe -executionpolicy Bypass -nologo -noninteractive -File .\Install.ps1
Detection method Powershell script :

Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -like "MySoftware*" }