Scripts/Show-PS2ExeUI.ps1

Function Show-PS2ExeUI {

    <#
 
    .SYNOPSIS
    A graphical interface for Markus Scholtes' PS2EXE module
 
    .DESCRIPTION
    A graphical interface for Markus Scholtes' PS2EXE module
 
    .EXAMPLE
    Show-PS2ExeUI
 
    .NOTES
    The PS2EXE module MUST be already installed.
    This module only provides the graphical interface
    and doesn't include the PS2EXE module.
 
    .LINK
    N/A
 
    #>


    [CmdletBinding ()]

    Param ()

    BEGIN {

        If (Get-Module -ListAvailable -Name 'PS2EXE') {

            Start-Process $PSScriptRoot\PS2EXE-UI.exe

        }

        Else {

            Write-Warning -Message '[!] The PS2EXE module is not installed'

        }

    }

    PROCESS {}

    END {}

}