C:\..> docker pull microsoft/powershell:6.0.1-nanoserver-1709 ... C:\..> docker run -it microsoft/powershell:6.0.1-nanoserver-1709
PS C:\> Add-Content C:\Users\Public\helloworld.ps1 'Write-Host "Hello World"' PS C:\> exit
C:\..> docker ps -a C:\..> docker commit helloworld
C:\..> docker run --rm helloworld pwsh c:\Users\Public\helloworld.ps1 Hello World!