10 lines
337 B
PowerShell
10 lines
337 B
PowerShell
|
function ConvertTo-ASCII {
|
||
|
[CmdletBinding()]
|
||
|
param (
|
||
|
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Position = 0)]
|
||
|
[ValidateNotNullOrEmpty()]
|
||
|
$Text
|
||
|
)
|
||
|
|
||
|
return [System.Text.Encoding]::ASCII.GetString([System.Text.Encoding]::ASCII.GetBytes($Text))
|
||
|
}
|