fixed typo & added Get-PsBeeps
This commit is contained in:
19
PowerShell/function_get-psbeeps.ps1
Normal file
19
PowerShell/function_get-psbeeps.ps1
Normal file
@ -0,0 +1,19 @@
|
||||
function Get-PsBeeps (){
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Create random beeps
|
||||
.DESCRIPTION
|
||||
Beeps random beeps from the console. Press CRTL-C to break.
|
||||
Written by Sten Lootens
|
||||
.EXAMPLE
|
||||
.\GetPsBeeps()
|
||||
#>
|
||||
|
||||
While($true){
|
||||
[Console]::Beep(
|
||||
(Get-Random -Minimum 200 -Maximum 8000)
|
||||
,500
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user