A computer-implemented method for centrally analyzing and managing scripts, the method comprising: identifying, at a centralized script execution resource in a network environment, a first script; wherein endpoint resources in the network environment are not permitted to execute the first script, and wherein the centralized script execution resource is configured to execute the first script on behalf of at least one of the endpoint resources; identifying, at the centralized script execution resource, a security risk indication for the first script, the security risk indication being based on permissions associated with a functionality of the first script; determining, at the centralized script execution resource, a security context for the first script, the security context being based on at least one of: an identity requesting execution of the first script, an authentication status of the identity, a source of the first script, or an action type of the first script; and based on the security risk indication and the security context, determining whether to execute the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources, wherein if it is determined to execute the first script, the method further comprising: determining execution conditions for execution of the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources; and executing the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources. identifying, at a centralized script execution resource in a network environment, a first script; wherein endpoint resources in the network environment are not permitted to execute the first script, and wherein the centralized script execution resource is configured to execute the first script on behalf of at least one of the endpoint resources; identifying, at the centralized script execution resource, a security risk indication for the first script, the security risk indication being based on permissions associated with a functionality of the first script; determining, at the centralized script execution resource, a security context for the first script, the security context being based on at least one of: an identity requesting execution of the first script, an authentication status of the identity, a source of the first script, or an action type of the first script; and an identity requesting execution of the first script, an authentication status of the identity, a source of the first script, or an action type of the first script; and based on the security risk indication and the security context, determining whether to execute the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources, wherein if it is determined to execute the first script, the method further comprising: determining execution conditions for execution of the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources; and executing the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources. determining execution conditions for execution of the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources; and executing the first script at the centralized script execution resource on behalf of the at least one of the endpoint resources. <EOS>