PowerShell – Analogue Clock

# analogue-clock.ps1 # Set-StrictMode -Version latest Add-Type -AssemblyName System.Drawing Add-Type -AssemblyName System.Windows.Forms $DegreesToRadians = [Math]::PI/180 $PSicon = [Drawing.Icon]::ExtractAssociatedIcon((Get-Command -Name powershell).Path) ################################# function Initialize-Clock() { # create the form to display the clock $script:form = New-Object  -TypeName Windows.Forms.Form $script:form.Icon = $PSicon $script:form.Text = ‘Analogue Clock’ $script:form.Height = 700 $script:form.Width = $form.Height $script:form.BackColor=[Drawing.Color]::White $script:form.Location.X = 1000 $script:form.TransparencyKey…

5