Console

From Visual DialogShell Wiki
Jump to navigation Jump to search
function console ($a,$b){
    switch ($a) {
        read {
            return read-host -prompt $b
        }
        write {
            write-host $b
        }
        default {
            write-host $a
        }
    }
<#
    .SYNOPSIS
    Performs console write or read operations
     
    .DESCRIPTION
     VDS
    $read = $(console read)
   
    .LINK
    https://dialogshell.com/vds/help/index.php?title=Console
#>