Not able to create folder in windows container using powershell

I have used following commands in the Dockerfile but nothing is working, I am using powershell console for container.
please suggest

RUN powershell -Command "New-Item -ItemType Directory -Force -Path 'C:\Program Files\Java'"
RUN powershell -Command "New-Item -ItemType Directory -Force -LiteralPath 'C:\Program Files\Java'"
RUN powershell -Command "if (!(Test-Path 'C:\Program Files\Java')) { New-Item -ItemType Directory -Force -Path 'C:\Program Files\Java' }"
RUN powershell -Command "& { New-Item -ItemType Directory -Force -Path 'C:\Program Files\Java' }"
RUN powershell -Command "New-Item -ItemType Directory -Force -Path \"C:\Program Files\Java\""

Where is the rest? FROM?

I did not get you what does it mean where is the rest? FROM?

Did you read the tutorial? I would not expect a Dockerfile without FROM to work.

FROM mcr.microsoft.com/windows/servercore:ltsc2019

I am unable to find any reliable reference in the above doc that explains how to create a folder inside a Windows container. ( I am referring powershell in Dockerfile )

and at below highlighted place I want to add powershell command to add a folder