Send command flag to :term

I want to use PowerShell as the default shell used by the Neovim Terminal Emulator. I have set the shell option to powershell and the emulator opens PS. But I’m getting the annoying Windows Corpaoration … header and it is loading the profile again so I want to pass -NoLogo and -NoProfile to the shell to get rid of it. How can I do that?

There is something you may be interested in :h shell-powershell:

		let &shell = executable('pwsh') ? 'pwsh' : 'powershell'
		let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
		let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
		let &shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
		set shellquote= shellxquote=

thanks, but I already tested the shellcmdflag and it doesn’t appear to affect the :term. But this is indeed what to execute commands with :!

@Drllap did you find a solution to this?