PS commands are not recognized in batch file

Home Forums Scripting PowerShell PS commands are not recognized in batch file

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    mla
    Member
    #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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.