PS commands are not recognized in batch file Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › PowerShell › PS commands are not recognized in batch file This topic has 2 replies, 2 voices, and was last updated 6 years, 2 months ago by universal. Viewing 1 post (of 1 total) Author Posts mlaMember Aug 13, 2014 at 11:25 am #164116 I renamed txt file with PS commands to bat Then in elevated PS prompt typed .file_name after each command in my batch I received : not recognized. Works fine when running one by one in the same prompt what I am missing? Thx. Commands in batch: Set-ExecutionPolicy RemoteSigned -Scope Process -Force Import-Module AppVClient Get-AppvClientPackage Get-AppvClientConnectionGroup Get-AppvPublishingServer Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.